We’re rewarding the question askers & reputations are being recalculated! Read more.

New answers tagged

0

There are different approaches at Upgradeable smart contracts One of the simplest is for the frontend contracts to refer to the backend contracts, not as hardcoded addresses, but using ENS (https://ens.domains). The ENS entries are updated when new backend contracts are needed. Note that a significant benefit of smart contracts is their trustlessness, and ...


0

It looks like there's a problem with your geth instance. Make sure it has the latest version of the blockchain download it, restart it again and let us know if you still have the error. If it doesn't, I'd recommend you to use infura for deploying your contract because you don't have to manage your own node.


0

When working with Truffle v5.0.39, the above-mentioned syntax is not valid. If the contract's constructor has arguments, the deploy function has to provide the arguments like this: deployer.deploy( myContract, arg1, arg2, ...); So, for example, if your constructor takes two addresses: deployer.deploy(towater, "0x15458ef540ade6068dfe2f44e8fa733c", "...


0

There's no such thing as a maximum number of functions, just the maximum amount of gas per block, which includes in any case the whole bytecode of the contract. First, if the function is not in the ABI but it's in your solidity code, you'll have to recompile and regenerate the ABI (and possibly redeploy the contract). If there are no errors during the ...


0

If you need a custom solution, firstly know that what is stored on the blockchain is the compiled version of the contracts, i.e., the bytecode. You can decompile it with certain tools, but obviously it won't yield the original result. However, there are many contracts in Etherscan whose source code is published, like this one. You can get the full list of ...


0

When you are on MetaMask (this is a chrome extension) you can choose the option 'view on etherscan'. Here you can see all the Ethereum transactions. In the To-address you will see: [Contract 0x........ Created]


0

py-solc-x includes a link_code method that will insert library addresses into your bytecode: >>> from solcx import link_code >>> unlinked_bytecode = "...


Top 50 recent answers are included