New answers tagged

1

You're overlooking the mining step. Contract deployment is the result of a transaction, but first a transaction has to mine. In the interim, the first response from sending a transaction, which new DepositPaying(address(this)) does, is a transaction hash. That response doesn't indicate that the transaction is processed. Only that it was sent and assigned a ...


1

Notice that new API is available: // Legacy dapp browsers... if (window.web3 !== undefined) { const provider = new Web3.providers.HttpProvider(window.web3.currentProvider); const web3 = new Web3(provider); } // Modern dapp browsers... if (window.ethereum !== undefined) { const provider = new Web3.providers.HttpProvider(window.ethereum); const ...


Top 50 recent answers are included