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:
Joemar Taganna
2018-03-14 09:26:47 +08:00
committed by joemarct
parent 63ecc4d05d
commit 9768aa9695

View File

@@ -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;
}