Closed morelearn1990 closed 10 months ago
In this issue, switching web3. js to version 1. x is not a problem
When I compared the parameters passed in to the request, I found that 4. x used input
to pass in the parameters, while 1. x used data
to pass in the parameters, resulting in an error on the iOS metamask application.
related #21467
Hi there. thanks for submitting this i'll take a look. are u only using metmask through ios?
Hey @morelearn1990, are you only using metamask through ios?
Hi there. thanks for submitting this i'll take a look. are u only using metmask through ios?
i am getting the same error on bsc testnet
> Hey @morelearn1990, are you only using metamask through ios?
Yes, then I set the value of input and data to be the same together with the metamask to solve this problem, I do not know whether it will cause other problems, at least now no problem!
Hey @morelearn1990, please check out our latest 4.4.0 release - https://www.npmjs.com/package/web3/v/4.4.0
This issue should already be fixed there. If for some reason you are still seeing this in 4.4.0, please reopen this issue. Thanks.
I encountered the same problem #7043
Expected behavior
Actual behavior
Steps to reproduce the behavior
balanceOf operation will report an error
Logs
{"name":"ResponseError","code":100,"message":"Returned error: Internal JSON-RPC error.","innerError":{"code":-32603,"message":"Internal JSON-RPC error.","data":{"code":-32000,"message":"execution reverted"}},"data":{"code":-32000,"message":"execution reverted"},"request":null}
Environment
web3.js 4.2.2 metamask ios 7.10.0