common: 2.0.3
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