Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit e63712a

Browse files
authored
Merge branch 'master' into deps
2 parents 2b2a7da + 4cccc62 commit e63712a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export default class Wallet {
290290
*
291291
* @param icapDirect setting this to `true` will generate an address suitable for the `ICAP Direct mode`
292292
*/
293-
public static generate(icapDirect: boolean = false): Wallet {
293+
public static generate(icapDirect = false): Wallet {
294294
if (icapDirect) {
295295
const max = BigInt('0x088f924eeceeda7fe92e1f5b0fffffffffffffff')
296296
for (;;) {
@@ -329,7 +329,7 @@ export default class Wallet {
329329
* This method only accepts uncompressed Ethereum-style public keys, unless
330330
* the `nonStrict` flag is set to true.
331331
*/
332-
public static fromPublicKey(publicKey: Buffer, nonStrict: boolean = false): Wallet {
332+
public static fromPublicKey(publicKey: Buffer, nonStrict = false): Wallet {
333333
if (nonStrict) {
334334
publicKey = importPublic(publicKey)
335335
}
@@ -411,7 +411,7 @@ export default class Wallet {
411411
public static async fromV3(
412412
input: string | V3Keystore,
413413
password: string,
414-
nonStrict: boolean = false
414+
nonStrict = false
415415
): Promise<Wallet> {
416416
const json: V3Keystore =
417417
typeof input === 'object' ? input : JSON.parse(nonStrict ? input.toLowerCase() : input)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy