Skip to content

Commit 4cccc62

Browse files
authored
Merge pull request ethereumjs#173 from LucidSamuel/patch-1
Found explicit type declarations
2 parents 52ff33f + acebe76 commit 4cccc62

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
@@ -262,7 +262,7 @@ export default class Wallet {
262262
*
263263
* @param icapDirect setting this to `true` will generate an address suitable for the `ICAP Direct mode`
264264
*/
265-
public static generate(icapDirect: boolean = false): Wallet {
265+
public static generate(icapDirect = false): Wallet {
266266
if (icapDirect) {
267267
const max = new BN('088f924eeceeda7fe92e1f5b0fffffffffffffff', 16)
268268
while (true) {
@@ -300,7 +300,7 @@ export default class Wallet {
300300
* This method only accepts uncompressed Ethereum-style public keys, unless
301301
* the `nonStrict` flag is set to true.
302302
*/
303-
public static fromPublicKey(publicKey: Buffer, nonStrict: boolean = false): Wallet {
303+
public static fromPublicKey(publicKey: Buffer, nonStrict = false): Wallet {
304304
if (nonStrict) {
305305
publicKey = importPublic(publicKey)
306306
}
@@ -389,7 +389,7 @@ export default class Wallet {
389389
public static async fromV3(
390390
input: string | V3Keystore,
391391
password: string,
392-
nonStrict: boolean = false
392+
nonStrict = false
393393
): Promise<Wallet> {
394394
const json: V3Keystore =
395395
typeof input === 'object' ? input : JSON.parse(nonStrict ? input.toLowerCase() : input)

0 commit comments

Comments
 (0)