Make wallet.encrypt options optional.
This commit is contained in:
parent
4f63b82bbb
commit
7f1fbfc203
@ -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 = {};
|
||||
|
Loading…
Reference in New Issue
Block a user