core: 2.0.11
Handling of the new instance
prop in the 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 is 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/core:v2.0.11: [feature] - Magic wallet module addition #879