Skip to content

Support for signTypedData (EIP712), and ConnectButton improvements

Choose a tag to compare

@pixelmatrix pixelmatrix released this 11 Jul 22:12

New Features

  • Initial support for EIP-712 signTypedData. Until it is supported in web3, you can access it by sending it to the provider directly:
const provider = bitski.getProvider();
const from = '0x...';
const typedData = { /* ... */ };
const signedData = await provider.send('eth_signTypedData', [from, typedData]);
  • Updated the appearance of our ConnectButton
  • Added an explicit cancellation handler for ConnectButton (will no longer throw an error)
yourConnectButton.onCancel = () => {
  // Will be called when the user clicks sign in, but dismisses popup
};
  • We now try to detect when the popup has been blocked and return an error. You can check for an instance of AuthenticationError with code AuthenticationErrorCode.PopupBlocked (1006)