mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 19:59:02 +08:00
builder addOutput now takes Buffer | string
nullData.output.encode Buffer fixing bugs according to @bobrosoft
This commit is contained in:
4
types/bitcoinjs-lib/index.d.ts
vendored
4
types/bitcoinjs-lib/index.d.ts
vendored
@@ -219,7 +219,7 @@ export class TransactionBuilder {
|
||||
|
||||
addInput(txhash: Buffer | string | Transaction, vout: number, sequence?: number, prevOutScript?: Buffer): number;
|
||||
|
||||
addOutput(scriptPubKey: Buffer, value: number): number;
|
||||
addOutput(scriptPubKey: Buffer | string, value: number): number;
|
||||
|
||||
build(): Transaction;
|
||||
|
||||
@@ -537,7 +537,7 @@ export namespace script {
|
||||
output: {
|
||||
check(script: Buffer): boolean;
|
||||
decode(buffer: Buffer): Buffer;
|
||||
encode(data: Buffer[]): Buffer;
|
||||
encode(data: Buffer): Buffer;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user