From 7f1fbfc20377f62f16628d70833ddd073a13458e Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Sat, 4 Aug 2018 19:33:51 -0400 Subject: [PATCH] Make wallet.encrypt options optional. --- src.ts/wallet/wallet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src.ts/wallet/wallet.ts b/src.ts/wallet/wallet.ts index 6e2c9608b..65ffb9526 100644 --- a/src.ts/wallet/wallet.ts +++ b/src.ts/wallet/wallet.ts @@ -125,7 +125,7 @@ export class Wallet extends AbstractSigner { return this.provider.sendTransaction(this.sign(tx)); } - encrypt(password: Arrayish | string, options: any, progressCallback: ProgressCallback): Promise { + encrypt(password: Arrayish | string, options?: any, progressCallback?: ProgressCallback): Promise { if (typeof(options) === 'function' && !progressCallback) { progressCallback = options; options = {};