{in,out}puts => tx{In,Out}puts

This commit is contained in:
Luke Childs 2020-04-26 18:07:09 +07:00
parent 6c616bff78
commit e7345d5446
4 changed files with 8 additions and 8 deletions

View file

@ -109,7 +109,7 @@ class Psbt {
set locktime(locktime) {
this.setLocktime(locktime);
}
get inputs() {
get txInputs() {
return this.__CACHE.__TX.ins.map(input => ({
hash: bufferutils_1.cloneBuffer(input.hash),
index: input.index,
@ -118,7 +118,7 @@ class Psbt {
witness: input.witness.map(buffer => bufferutils_1.cloneBuffer(buffer)),
}));
}
get outputs() {
get txOutputs() {
return this.__CACHE.__TX.outs.map(output => ({
script: bufferutils_1.cloneBuffer(output.script),
value: output.value,