flutter_web3
flutter_web3 copied to clipboard
Exposing _call so we can sign typed data (EIP712)
This way we can sign typed data like this:
await provider.getSigner().call<String>("_signTypedData", [
jsify(domain), // jsify is required in case not being primitives
jsify(types),
jsify(value)
]); // returns "0x..." signature hex