We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46023f9 commit b15ebceCopy full SHA for b15ebce
src/key/index.ts
@@ -65,10 +65,12 @@ export class Key {
65
* @param params.keyStore A key store.
66
* @returns A new platform address
67
*/
68
- public async createPlatformAddress(params: {
69
- keyStore?: KeyStore;
70
- passphrase?: string;
71
- }): Promise<PlatformAddress> {
+ public async createPlatformAddress(
+ params: {
+ keyStore?: KeyStore;
+ passphrase?: string;
72
+ } = {}
73
+ ): Promise<PlatformAddress> {
74
const { keyStore = await this.ensureKeyStore(), passphrase } = params;
75
if (!isKeyStore(keyStore)) {
76
throw Error(
0 commit comments