StackAsk is a community where developers ask questions, share answers and learn from each others real-world experience, so every solved problem helps the next person who runs into it.
module.exports = { networks: { development: { host: "localhost", port: 8545, network_id: "*", gas: 0, from: "0x3c31b4b9d6c24bad29498f99aaa6914231362c7f" } }, compilers: { solc: { version: "0.8.0" } } };
const ERC721 = artifacts.require("token/ERC721"); module.exports = function (deployer) { const collectionName = 'My First Collection'; const collectionSymbol = 'MFCL'; deployer.deploy( ERC721, collectionName, collectionSymbol ); };
let contract = await ERC721.deployed() contract.name() contract.symbol() contract.transfer("0xf6de26f382078d34446b133fd54191fe49c77273", 1000) contract.balanceOf("0xf6de26f382078d34446b133fd54191fe49c77273")
truffle(development)> let contract = await ERC721.deployed() undefined truffle(development)> contract.name() 'My First Collection' truffle(development)> contract.symbol() 'MFCL'
2.2K Point(s)
1.2K Point(s)
313 Point(s)
178 Point(s)
138 Point(s)
Input your email to receive reset password link, or if you remember your password, you can click