DePayFi / web3-mock

🤡 JavaScript library to mock web3 responses either by emulating web3 wallets or web3 RPC requests.
https://depay.com
MIT License
84 stars 20 forks source link

Sign typed data #10

Closed dmlayton closed 2 years ago

dmlayton commented 2 years ago

Added support for typed data so that one can now do this:

const signature = await provider.send('eth_signTypedData_v4',
[accounts[0], `0x${messageHex}`])

without receiving an error.

All this is really just adding the required method names to the supported cases.

10xSebastian commented 2 years ago

Thanks a lot for adding the test and the documentation 🙏