Skip to content

Commit

Permalink
fix(tx): show name of transaction type
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Apr 1, 2023
1 parent 75f5eee commit 18ee736
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/actions/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function buildAndPrintTx(txType, params, json, extraKeys = {}) {
print({ tx, txObject, ...extraKeys });
return;
}
printUnderscored('Transaction type', txType);
printUnderscored('Transaction type', Tag[txType]);
print('Summary');
Object
.entries({ ...txObject, ...extraKeys })
Expand Down
2 changes: 1 addition & 1 deletion test/tx.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('Transaction Module', () => {

const response = await executeTx(args);
expect(response).to.equal(`
Transaction type ________________________ 12
Transaction type ________________________ SpendTx
Summary
TAG _________________________________ 12
VSN _________________________________ 1
Expand Down

0 comments on commit 18ee736

Please sign in to comment.