dmihal / eth-permit

Lightweight library for signing ERC-2612 permit signatures.
https://www.npmjs.com/package/eth-permit
139 stars 30 forks source link

Error Trust wallet Chain ID mismatch #20

Open artemki2077 opened 5 months ago

artemki2077 commented 5 months ago

The library works great on all wallets except the trust wallet, it's even strange that I tested the trust on Android and on iPhone, but it only works on android, the error lies in the fact that when trying to call a subscription on the trust wallet, the vallet gives the error Chain ID mismatch, although the wallet is changed to the right one before the permit, via RPC the request is wallet_switchEthereumChain, I would like to know if anyone has the same error, and this is a problem with the library or the wallet itself

photo_2024-03-19 08 46 47 photo_2024-03-19 08 49 11