Make wallet.encrypt options optional.

This commit is contained in:
Richard Moore 2018-08-04 19:33:51 -04:00
parent 4f63b82bbb
commit 7f1fbfc203
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

@ -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<string> {
encrypt(password: Arrayish | string, options?: any, progressCallback?: ProgressCallback): Promise<string> {
if (typeof(options) === 'function' && !progressCallback) {
progressCallback = options;
options = {};