From b2db10e216748e4c4d5d359bded904af7bd1128f Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Sun, 7 Oct 2018 00:42:52 -0400 Subject: [PATCH] Mark progressCallback as optional (#293). --- src.ts/wallet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src.ts/wallet.ts b/src.ts/wallet.ts index 0e1bc15ce..7b758c538 100644 --- a/src.ts/wallet.ts +++ b/src.ts/wallet.ts @@ -165,7 +165,7 @@ export class Wallet extends AbstractSigner { return Wallet.fromMnemonic(mnemonic, options.path, options.locale); } - static fromEncryptedJson(json: string, password: Arrayish, progressCallback: ProgressCallback): Promise { + static fromEncryptedJson(json: string, password: Arrayish, progressCallback?: ProgressCallback): Promise { if (isCrowdsaleWallet(json)) { try { if (progressCallback) { progressCallback(0); }