[FIX] Address.fromOutputScript returns string not buffer (#22560)

This commit is contained in:
Youssef GHOUBACH
2018-01-02 20:18:48 +00:00
committed by Mohamed Hegazy
parent ac99b869eb
commit f668bd5740

View File

@@ -4,6 +4,7 @@
// Daniel <https://github.com/dlebrecht>
// Ron Buckton <https://github.com/rbuckton>
// Satana Charuwichitratana <https://github.com/micksatana>
// Youssef GHOUBACH <https://github.com/youssefgh>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Declaration file initially generated by dts-gen for bitcoinjs-lib 3.0.3
// based on the flow version found at https://github.com/flowtype/flow-typed/blob/master/definitions/npm/bitcoinjs-lib_v2.x.x/flow_v0.17.x-/bitcoinjs-lib_v2.x.x.js
@@ -383,7 +384,7 @@ export namespace address {
/** @since 3.2.0 */
function fromBech32(address: string): { data: Buffer, prefix: string, version: number };
function fromOutputScript(outputScript: Buffer, network?: Network): Buffer;
function fromOutputScript(outputScript: Buffer, network?: Network): string;
function toBase58Check(hash: Buffer, version: number): string;