Skip to content

Commit

Permalink
fix getTransactionHash
Browse files Browse the repository at this point in the history
  • Loading branch information
mehcode committed Nov 12, 2020
1 parent eace345 commit 3f92f91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/transaction/Transaction.js
Expand Up @@ -541,18 +541,18 @@ export default class Transaction extends Executable {
/**
* @returns {Promise<Uint8Array>}
*/
get transactionHash() {
getTransactionHash() {
this._requireFrozen();

return sha384.digest(
ProtoTransaction.encode(this._transactions[0]).ldelim().finish()
ProtoTransaction.encode(this._transactions[0]).finish()
);
}

/**
* @returns {Promise<TransactionHashMap>}
*/
get transactionHashPerNode() {
getTransactionHashPerNode() {
this._requireFrozen();
return TransactionHashMap._fromTransaction(this);
}
Expand Down
2 changes: 1 addition & 1 deletion test/integration/TransactionIntegrationTest.js
Expand Up @@ -23,7 +23,7 @@ describe("TransactionIntegration", function () {
.freezeWith(client)
.signWithOperator(client);

const expectedHash = await transaction.transactionHash;
const expectedHash = await transaction.getTransactionHash();

const response = await transaction.execute(client);

Expand Down

0 comments on commit 3f92f91

Please sign in to comment.