Skip to content

Commit 877e63d

Browse files
committed
Fix missing network ID in Key.createPlatformAddress()
1 parent 9841898 commit 877e63d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/key/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ export class Key {
7676
);
7777
}
7878
const accountId = await keyStore.platform.createKey({ passphrase });
79-
return PlatformAddress.fromAccountId(accountId);
79+
const { networkId } = this;
80+
return PlatformAddress.fromAccountId(accountId, { networkId });
8081
}
8182

8283
/**

0 commit comments

Comments
 (0)