mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-22 02:08:03 +00:00
Add the type field to external keypair accounts (#833)
This commit is contained in:
@@ -33,7 +33,7 @@ export class Keyring extends Base implements KeyringStruct {
|
||||
};
|
||||
|
||||
public addExternal (address: string | Uint8Array, meta: KeyringPair$Meta = {}): CreateResult {
|
||||
const pair = this.keyring.addFromAddress(address, objectSpread<KeyringJson$Meta>({}, meta, { isExternal: true }), null);
|
||||
const pair = this.keyring.addFromAddress(address, objectSpread<KeyringJson$Meta>({}, meta, { isExternal: true }), null, meta?.type);
|
||||
|
||||
return {
|
||||
json: this.saveAccount(pair),
|
||||
|
||||
Reference in New Issue
Block a user