injectKeyPairsToWebView method

Future<void> injectKeyPairsToWebView(
  1. KeyringEVM keyring
)

Implementation

Future<void> injectKeyPairsToWebView(KeyringEVM keyring) async {
  if (keyring.store.list.length > 0) {
    final String pairs = jsonEncode(keyring.store.list);
    serviceRoot.webView!.evalJavascript('eth.keyring.initKeys($pairs)');
  }
}