Mark progressCallback as optional (#293).

This commit is contained in:
Richard Moore 2018-10-07 00:42:52 -04:00
parent 3736a15714
commit b2db10e216
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

@ -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<Wallet> {
static fromEncryptedJson(json: string, password: Arrayish, progressCallback?: ProgressCallback): Promise<Wallet> {
if (isCrowdsaleWallet(json)) {
try {
if (progressCallback) { progressCallback(0); }