setupWalletOnErrorEvent function

  1. @JS('dwa.setupWalletOnErrorEvent')
void setupWalletOnErrorEvent(
  1. BaseWalletAdapter walletAdapter,
  2. void onError(
    1. 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);