-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot execute ethers.js contract method without specifying optional transaction overrides argument #322
Comments
I also want to note that this issue can also appear in other loom-js parts which use |
Which network is it? Ext-dev or plasma? |
@redben We use it with extdev and rinkeby |
Please provide a snippet of code that can be used to reproduce this error. |
You can just call |
@enlight Same issue reported by Sorare. They're using ethers 4.0.37 and they tried to call the
This resulted in the following error:
I asked them to pass the
and this worked. I don't know if there's an issue with loom-js or ethers though. |
@andreipope maybe it's because loom-js doesn't set default gas limit for basechain and ethers just requires developers to explicitly specify it? With ethereum network there's no such issue. |
I also can mention that when using our own contracts with ethers.js and loom-js we also need to provide the gas limit. So, in my opinion it's because |
Description
When I try to run
EthereumGatewayV2.withdrawAsync
method without providingoverrides
argument (which is marked as optional inloom-js
code) it throws this error:When I pass an
overrides
object with agasLimit
property specified, everything works fine. At least, this argument have to be marked as required inwithdrawAsync
function signature.Versions
4.0.38
1.70.0
The text was updated successfully, but these errors were encountered: