-
Notifications
You must be signed in to change notification settings - Fork 139
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
Sending FIL via FEVM on Metamask Mobile fails with Internal JSON RPC Error #1538
Comments
Thanks @scotthconner for exploring unchartered territories. As you said impact is low for now, but we'll keep it in mind. |
Possibly a usage of batched JSON-RPC calls, since mobile applications tend to be built to reduce latencies. #1047. |
Good point, batching is usually the way of sending requests on mobile (both for latency and battery) |
We have found that the MetaMask Mobile apps use the ConsenSys Codefi APIs. The Filecoin chains have not yet been onboarded onto them:
This issue is visible when dealing with assets (e.g. tokens and NFTs). We are dealing with that on the FVM Product side of things. However, what @scotthconner reports here is a native token send, which may or may not be related. |
@scotthconner I successfully tested native coin transfers in MetaMask Mobile for iOS. Could you please retest on Android? We are aware of the above issue for tokens, but native coin transfers should not be affected. |
Native gas sends now work on Android with v1 endpoint. I noticed a considerable lag between the transactions complete notification and the balance update, but a few more blocks and everything looked right. |
Yea, I noticed the same. We should review if we're applying our deferred execution rules correctly on eth_getBalance in the JSON-RPC. It might just be a MetaMask lag. Perhaps try on Goerli? |
I was able to send and receive FIL via MetaMask, as well as custom ERC-20 tokens. May have been fixed by the recent addition of Filecoin to Codefi oracles. |
Adding Hyperspace configuration (https://api.hyperspace.node.glif.io/rpc/v0 or v1) to MetaMask on Android successfully reads contract state from dApps deployed on Hyperspace. tFIL balance shows up in-wallet.
However, sending raw tFIL on the MM mobile app results in "Transaction Error: Internal JSON-RPC error."
My only guess is that Metamask Mobile does some level of validation not done in the browser extension. There might still be lingering CBOR encoding values leaking through that is causing problems, but I can't be sure because debugging the mobile app is significantly more limited.
The current impact seems low as it only happens on mobile, but its an indicator that something about how the EVM is interacting with clients is still causing JSON RPC issues.
The text was updated successfully, but these errors were encountered: