thetatoken / theta-eth-rpc-adaptor

An adaptor that translates the Theta RPC APIs to the Ethereum RPC APIs
https://docs.thetatoken.org/
24 stars 11 forks source link

RPC error with Metamask version 10.13.0 #30

Closed rjx18 closed 2 years ago

rjx18 commented 2 years ago

Hi Jieyi!

I've been doing some testing for some new features, and noticed an error when testing some previously working code:

MetaMask - RPC Error: [ethjs-query] while formatting outputs from RPC 
'{"value":{"code":-32603,"data":{"code":-32000,"message":"theta RPC returns an error: -32000: rlp: expected input list for types.EthTransaction"}}}'

This error occurs on every contract call, and seems to also occur when simply transferring TFUEL via Metamask.

I tested this on other sites as well, such as OpenTheta, and it seems like the error is occurring everywhere, which means this is something to do with Metamask or the RPC.

Looking at the Metamask update history, they've just updated their wallet 6 days ago to version 10.13.0, which I suspect is the cause of the error.

I rolled back to version 10.11.3 and it all seems to work fine now. Strange thing is, before I pushed the updates (frontend, not contract level) to the mainnet, everything worked fine on the testnet. Perhaps you guys already fixed it? I'll do some further testing to try to figure out what is going on. Any thoughts on what could be going wrong?

rjx18 commented 2 years ago

The issue seems to have fixed itself. Very strange. Sorry for any inconvenience!

jieyilong commented 2 years ago

Interesting. We didn't make any change to the RPC adapter in the past few weeks. Thanks for letting us know!