Skip to content

common: 2.0.3

Compare
Choose a tag to compare
@Adamj1232 Adamj1232 released this 16 Mar 02:21
b191bf9

Addition of the instance prop to walletInterface type to allow for passing of a wallet instance with the provider in certain wallet.
This is beneficial for wallets that have extra methods built in to the walletInstance that are not standard across wallets.

e.g. Magic wallet has methods userMetaData() and resetEmail() that are exposed through the instance property.

type WalletInterface = {
  provider: EIP1193Provider,
  instance?: unknown
}

Changelog:

  • web3-onboard/common:v2.0.3: [feature] - Magic wallet module addition #879