This repository was archived by the owner on Oct 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ export default class Wallet {
290
290
*
291
291
* @param icapDirect setting this to `true` will generate an address suitable for the `ICAP Direct mode`
292
292
*/
293
- public static generate ( icapDirect : boolean = false ) : Wallet {
293
+ public static generate ( icapDirect = false ) : Wallet {
294
294
if ( icapDirect ) {
295
295
const max = BigInt ( '0x088f924eeceeda7fe92e1f5b0fffffffffffffff' )
296
296
for ( ; ; ) {
@@ -329,7 +329,7 @@ export default class Wallet {
329
329
* This method only accepts uncompressed Ethereum-style public keys, unless
330
330
* the `nonStrict` flag is set to true.
331
331
*/
332
- public static fromPublicKey ( publicKey : Buffer , nonStrict : boolean = false ) : Wallet {
332
+ public static fromPublicKey ( publicKey : Buffer , nonStrict = false ) : Wallet {
333
333
if ( nonStrict ) {
334
334
publicKey = importPublic ( publicKey )
335
335
}
@@ -411,7 +411,7 @@ export default class Wallet {
411
411
public static async fromV3 (
412
412
input : string | V3Keystore ,
413
413
password : string ,
414
- nonStrict : boolean = false
414
+ nonStrict = false
415
415
) : Promise < Wallet > {
416
416
const json : V3Keystore =
417
417
typeof input === 'object' ? input : JSON . parse ( nonStrict ? input . toLowerCase ( ) : input )
You can’t perform that action at this time.
0 commit comments