Closed alejoacosta74 closed 10 months ago
This is not a bug with quais. After looking at your repo, in the quais example you use provider.estimateGas() while in the ethers example you use the signer.estimateGas(). The from comes from using a walletwithprovider instead of just a provider when estimating Gas. if you use walletWithProvider in your quais example you will get the same output as in ethers.
Ethers Version
5.7.2
Search Terms
No response
Describe the Problem
The
estimateGas
method on the signer (provider) does not include thefrom
field as part of the JSON RPC request body. For example, when trying to estimate gas for a QRC20 deployment, Hardhat returns the error:Result:
The equivalent Hardhat script using
ethers.js
returns an output that indicates that thefrom
field is included in the RPC request body:Result:
Code Snippet
Contract ABI
Errors
Environment
Hardhat
Environment (Other)
No response