Skip to content

Commit

Permalink
update init deploy --success-all
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJonaseb11 committed Jun 4, 2024
1 parent c018b84 commit b69425b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
4 changes: 2 additions & 2 deletions smart_contract/arguments.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = [
"Meta",
"Meta",
"https://example.com/metadata/",
"ipfs://QmTNgv3jx2HHfBjQX9RnKtxj2xv2xQDtbVXoRi5rJ3a46e",
"50000000000000000000",
"0",
"0",
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
"0xc9178Cc519Ed5815Fd787e4C27D3fd63c747A0AA"
];
9 changes: 9 additions & 0 deletions smart_contract/scripts/arguments.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = [
"Meta",
"Meta",
"https://example.com/metadata/",
"50000000000000000000",
"0",
"0",
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
];
12 changes: 9 additions & 3 deletions smart_contract/scripts/deployToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ const { ethers } = require("hardhat");
const fs = require("fs");

const main = async() => {

const [deployer] = await ethers.getSigners();
const name = "Meta";
const symbol = "Meta";
const uri = "https://example.com/metadata/";
const uri = "ipfs://QmTNgv3jx2HHfBjQX9RnKtxj2xv2xQDtbVXoRi5rJ3a46e";
const maxSupply = ethers.parseEther("50");
const publicPrice = ethers.parseEther("0");
const initialTokenSupply = ethers.parseEther("0");
Expand Down Expand Up @@ -41,17 +42,22 @@ const main = async() => {

console.log("Fractionalized NFT deployed to:", await token.getAddress());

/*
// Get the base URI
const baseURI = await token.baseURI();
console.log("Contract Metadata URI:", baseURI);
console.log("Contract Metadata URI:", baseURI);
// Save the contract address and base URI to a file
const contractInfo = {
address: await token.getAddress(),
baseURI: baseURI
};
fs.writeFileSync("contract-info.json", JSON.stringify(contractInfo, null, 2));
console.log("Contract information saved to contract-info.json");
*/
}

const runMain = async() => {
Expand Down

0 comments on commit b69425b

Please sign in to comment.