mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-12 07:21:03 +00:00
Use pair.address() for saving
This commit is contained in:
@@ -89,7 +89,7 @@ export class Keyring extends Base implements KeyringStruct {
|
||||
json.meta.whenEdited = Date.now();
|
||||
|
||||
this.keyring.addFromJson(json);
|
||||
this.accounts.add(this._store, json.address, json);
|
||||
this.accounts.add(this._store, pair.address(), json);
|
||||
}
|
||||
|
||||
forgetAccount (address: string): void {
|
||||
@@ -242,7 +242,7 @@ export class Keyring extends Base implements KeyringStruct {
|
||||
const json = pair.toJson(password);
|
||||
|
||||
this.keyring.addFromJson(json);
|
||||
this.accounts.add(this._store, json.address, json);
|
||||
this.accounts.add(this._store, pair.address(), json);
|
||||
|
||||
return json;
|
||||
}
|
||||
@@ -254,7 +254,7 @@ export class Keyring extends Base implements KeyringStruct {
|
||||
pair.setMeta(meta);
|
||||
json.meta = pair.getMeta();
|
||||
|
||||
this.accounts.add(this._store, json.address, json);
|
||||
this.accounts.add(this._store, address, json);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user