approve method

void approve(
  1. Map<String, dynamic> params
)

Approve the session.

Implementation

void approve(Map<String, dynamic> params) {
  connected = true;
  chainId = params['chainId'] ?? chainId;
  accounts = params['accounts']?.cast<String>() ?? accounts;
  peerId = params['peerId'] ?? peerId;
  peerMeta = params.containsKey('peerMeta')
      ? PeerMeta.fromJson(params['peerMeta'])
      : peerMeta;
}