-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Facing SERVER_ERROR which calling contract function #1571
Comments
Hey I see |
As far I'm understanding this, first Now metamask should give you a value here. I have never encountered such edge case. I want to see the response of this from metamask. Can you do the following and share the result: try {
const result = await provider.send('eth_estimateGas', [{
"from":"0x0CbC4E5E965feC28D934e2Cafb7Df50369241215",
"to":"0xEA017BfB09aD1C295C6E18CE22A41A3B7A826Aab",
"data":"0x6c31364c000000000000000000000000000000000000000000000000000001797b9f949e0000000000000000000000009506d37f70eb4c3d79c398d326c871abbf10521d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064"
}])
console.log('success', result)
} catch (e) {
console.log('err', e);
} Edit I just tried it on mainnet: I get |
@zemse thanks for your reply. Yes, it should revert in your case as this is onlyOwner function. I'll give the above solution is try but I think by this time the client might have used a manual process by now. |
The json rpc resonse body contains
Lmk if you solve it or need help with it |
The above problem I fixed with some workaround from my frontend but still stuck with this problem. Haven't got any solution for this. |
Hi @ShivamDev31 |
Hi, @Nikhil1419 didnt face the same issue again but I'm facing another Another observation is that chrome users(limited users not all and we are not able to reproduce this) are facing this issue and it's working fine on brave. |
Closing older issues. But if this is still happening in v6, please re-open or start a new issue. Thanks! :) |
Hi @ricmoo I'm facing this issue with a particular contract. The same code for the same other contracts(generated by the same factory) is working fine. Not able to figure out what the issue is. Any help here?
{"reason":"bad result from backend","code":"SERVER_ERROR","method":"estimateGas","params":{"transaction":{"from":"0x0CbC4E5E965feC28D934e2Cafb7Df50369241215","to":"0xEA017BfB09aD1C295C6E18CE22A41A3B7A826Aab","data":"0x6c31364c000000000000000000000000000000000000000000000000000001797b9f949e0000000000000000000000009506d37f70eb4c3d79c398d326c871abbf10521d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064"}},"error":{"reason":"invalid BigNumber value","code":"INVALID_ARGUMENT","argument":"value"}}
The text was updated successfully, but these errors were encountered: