0

After set up a private clique chain and issued a ERC20 token contract. I compared token transfer gas between estimated amount by web3.eth.estimateGas() and used gas from transaction log. They are identical, say numberA

Using same contract and transfer parameter, also tried on Rinkeby testnet. although the estimated and used gas is still same. however its absolute value say numberB is not equal to numberA.

How should I understand this result? Thanks

  • What do you mean with "absolute value"? What are the value of numberA and numberB? Which forks are enabled in your genesis file? – Ismael Jan 16 at 13:52
  • "the absolute value" means the numberA and numberB. my genesis file for clique POA chain is as follows: "config": { "chainId": 70, "homesteadBlock": 1, "eip150Block": 2, "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "eip155Block": 3, "eip158Block": 3, "byzantiumBlock": 4, "constantinopleBlock": 5, "clique": { "period": 3, "epoch": 30000 } – Ntydrm Jan 17 at 2:39
  • Rinkeby has forked with Istanbul that contains repricing of some opcodes eips.ethereum.org/EIPS/eip-1679. If you want more details it is better if you show the contract code so we can determine what exactly is going on. – Ismael Jan 17 at 4:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.