changePassword method

Future<Map> changePassword({
  1. required String address,
  2. required String passOld,
  3. required String passNew,
})

change password of account

Implementation

Future<Map> changePassword(
    {required String address,
    required String passOld,
    required String passNew}) async {
  final res = await serviceRoot.webView!.evalJavascript(
      'eth.keyring.changePassword("$address", "$passOld", "$passNew")');
  return _formatAccountData(res ?? {});
}