New answers tagged

0

If you deployed the contract and lost the address you can simply retrieve it by truffle commands. You just need the name of the deployed contract. For example, I deployed NewContract but lost his address. truffle console --network private truffle(private)> truffle(private)> let contract = await NewContract.deployed() truffle(private)> contract....


0

If the contract is being deployed you can obviously read it from the log. What if the contract has deployed but you did not take a record of it? There are a few ways to do it: 1. Using etherscan (or Rinkeby scan, Ropsten scan etc..) and search your wallet address used for deployment of the contract. But what if I don't recall the wallet address used? You can ...


0

Here are some things that can make your compiled bytecode bigger (roughly from highest to lowest impact): Using new to deploy other contracts. This one can balloon the size of your contract very quickly even if it's not doing much by itself. See for example my answer for Running new() inside my contract adds 20K to contract size? Compiling without the ...


Top 50 recent answers are included