Schlagwort: deployment gas

  • Truffle Contract Deployment Gas Kosten in Migrations analysieren

    Update: Nutzt man die neuesten Beta Versionen ist eine solche analyse bereits built-in. Mein Script macht auch probleme bei einem chain-deployment, also nicht ganache-cli. Folgende Methode im migration Script anlegen: let analyze = async (deployedContract, contractName) => { let receipt = await web3.eth.getTransactionReceipt(deployedContract.transactionHash); console.log(contractName + “ used gas: “ + receipt.gasUsed) if(receipt.gasUsed > 4700000) {…