Improve property names

This commit is contained in:
Luke Childs 2020-04-26 15:34:11 +07:00
parent f7034350e9
commit c68986231c
4 changed files with 14 additions and 14 deletions
ts_src

View file

@ -129,15 +129,15 @@ export class Psbt {
return this.data.inputs.length;
}
get txVersion(): number {
get version(): number {
return this.__CACHE.__TX.version;
}
get txLocktime(): number {
get locktime(): number {
return this.__CACHE.__TX.locktime;
}
get txInputs(): Input[] {
get inputs(): Input[] {
return this.__CACHE.__TX.ins.map(input => {
return {
hash: cloneBuffer(input.hash),
@ -149,7 +149,7 @@ export class Psbt {
});
}
get txOutputs(): Output[] {
get outputs(): Output[] {
return this.__CACHE.__TX.outs.map(output => {
return {
script: cloneBuffer(output.script),