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

This commit is contained in:
Tarik Gul authored and GitHub committed 2025-05-23 17:45:29 +03:00
1 parent 36a18e7621
commit 2071d3a7d8
1 file changed
+1 -1
+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),