Add the type field to external keypair accounts (#833)

This commit is contained in:
Tarik Gul
2025-05-23 07:45:29 -07:00
committed by GitHub
parent 36a18e7621
commit 2071d3a7d8
+1 -1
View File
@@ -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),