mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
Make network argument in ECPair.fromWIF method optional
I corrected the typing for ECPair.fromWIF method so that the network argument is optional as it really should
This commit is contained in:
2
types/bitcoinjs-lib/index.d.ts
vendored
2
types/bitcoinjs-lib/index.d.ts
vendored
@@ -85,7 +85,7 @@ export class ECPair {
|
||||
|
||||
static fromPublicKeyBuffer(buffer: Buffer, network: Network): ECPair;
|
||||
|
||||
static fromWIF(string: string, network: Network): ECPair;
|
||||
static fromWIF(string: string, network?: Network): ECPair;
|
||||
|
||||
static makeRandom(options?: { compressed?: boolean, network?: Network, rng?: Rng }): ECPair;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user