You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
Will call to estimate the gas a method execution will take when executed in the EVM. The estimation can differ from the actual gas used when later sending a transaction, as the state of the smart contract can be different at that time. Note: You must specify a from address otherwise you may experience odd behavior.
(emphasis mine)
In my code I had to add {from: process.env.ETH_ADDRESS } and now it works.
The text was updated successfully, but these errors were encountered:
I'm using this as a base: https://blog.infura.io/deploying-smart-contracts-managing-transactions-ethereum/?utm_source=social&utm_medium=facebook&utm_campaign=Tutorials
demo-eth-tx/standard-transactions/web3/call.js
Line 30 in c63a4d6
From the docs: https://web3js.readthedocs.io/en/v1.3.1/web3-eth-contract.html#methods-mymethod-estimategas
(emphasis mine)
In my code I had to add
{from: process.env.ETH_ADDRESS }
and now it works.The text was updated successfully, but these errors were encountered: