setupWalletOnErrorEvent function
- @JS('dwa.setupWalletOnErrorEvent')
- BaseWalletAdapter walletAdapter,
- void onError(
- dynamic error
The onError
event is emitted when an error occurs while interacting with the wallet.
This could be due to a user rejecting a transaction, a network problem, or many other reasons.
Implementation
@JS('dwa.setupWalletOnErrorEvent')
external void setupWalletOnErrorEvent(
BaseWalletAdapter walletAdapter, void Function(dynamic error) onError);