diff --git a/smart_contract/arguments.js b/smart_contract/arguments.js index fb846ac..49c16e3 100644 --- a/smart_contract/arguments.js +++ b/smart_contract/arguments.js @@ -1,9 +1,9 @@ module.exports = [ "Meta", "Meta", - "https://example.com/metadata/", + "ipfs://QmTNgv3jx2HHfBjQX9RnKtxj2xv2xQDtbVXoRi5rJ3a46e", "50000000000000000000", "0", "0", - "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" + "0xc9178Cc519Ed5815Fd787e4C27D3fd63c747A0AA" ]; \ No newline at end of file diff --git a/smart_contract/scripts/arguments.js b/smart_contract/scripts/arguments.js new file mode 100644 index 0000000..fb846ac --- /dev/null +++ b/smart_contract/scripts/arguments.js @@ -0,0 +1,9 @@ +module.exports = [ + "Meta", + "Meta", + "https://example.com/metadata/", + "50000000000000000000", + "0", + "0", + "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" +]; \ No newline at end of file diff --git a/smart_contract/scripts/deployToken.js b/smart_contract/scripts/deployToken.js index 5dec12a..8c47b5d 100644 --- a/smart_contract/scripts/deployToken.js +++ b/smart_contract/scripts/deployToken.js @@ -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"); @@ -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() => {