-
Notifications
You must be signed in to change notification settings - Fork 5k
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 prevent site suggested gas price in Metamask #7303
Comments
Hey @jalaguerom, I'll have someone look into this soon. |
@jalaguerom we will expose this ignore gas pricing flag at contract send level ( for each send() call and also I think at contract instance level). |
Hey there in the meantime of fixing this, you can encode your abi contract into data and send it as a transaction. @jdevcs we can add this as a ignoregas as a config as well.
|
Hey @luu-alex, going through this problem as well. While your fix works, it's tedious to rewrite every instance where I used the .send function, is it possible to specify the ignoreGasPricing flag on the Contract Instance? That way I run my code as is. |
@zikyfranky a fix will be created soon, sorry your also running into this issue. |
Thanks a lot. I'll be waiting until that feature is included @jdevcs |
cc: @mconnelly8 for next sprint. |
@jdevcs i think we should include it in this sprint, i can fix this and get it released this sprint. |
I would also appreciate if you include it in the current sprint, thanks :) |
@luu-alex, added it to the sprint! Do your thing! |
what also works is setting someContract.methods.someMethod().send({
from: activeAccountAddress,
gasPrice: "",
} |
Added ignoregaspricing config to prevent site suggested gas price in metamask. This release will be aiming for monday, you can see usage here |
Expected behavior
Passing
maxPriorityFeePerGas
andmaxFeePerGas
as undefined to contract.method.send function should make Metamask calculate gas prices on its own based on market value.Actual behavior
Metamask shows site suggested gas price and incorrect speed time values
Steps to reproduce the behavior
maxPriorityFeePerGas
andmaxFeePerGas
Related issue: #7081. Solution talks about
ignoreGasPricing
parameter but it is not present in the send functionweb3js version: 4.13.0
The text was updated successfully, but these errors were encountered: