Skip to content

Commit b15ebce

Browse files
foriequal0joojis
authored andcommitted
Add default param to createPlatformAddress
1 parent 46023f9 commit b15ebce

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/key/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,12 @@ export class Key {
6565
* @param params.keyStore A key store.
6666
* @returns A new platform address
6767
*/
68-
public async createPlatformAddress(params: {
69-
keyStore?: KeyStore;
70-
passphrase?: string;
71-
}): Promise<PlatformAddress> {
68+
public async createPlatformAddress(
69+
params: {
70+
keyStore?: KeyStore;
71+
passphrase?: string;
72+
} = {}
73+
): Promise<PlatformAddress> {
7274
const { keyStore = await this.ensureKeyStore(), passphrase } = params;
7375
if (!isKeyStore(keyStore)) {
7476
throw Error(

0 commit comments

Comments
 (0)