react: 2.0.4
This release includes incremented version for the web3-onboard core and common packages in the react hook package.
These updates include a new instance
prop in the walletInterface type to allow passing of a wallet instance along with the provider in certain wallet modules.
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/react:v2.0.4: [update] - Update deps for React Package #882