Skip to content

Commit

Permalink
Merge pull request #306 from EYBlockchain/ilyas/fix-tx-hash
Browse files Browse the repository at this point in the history
Local <> contract transaction hash mismatch
  • Loading branch information
ChaitanyaKonda authored Nov 22, 2021
2 parents e06f8dd + 0d70467 commit b432486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common-files/classes/transaction.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function keccak(preimage) {
// compute the solidity hash, using suitable type conversions
return web3.utils.soliditySha3(
{ t: 'uint64', v: preimage.value },
...preimage.historicRootBlockNumberL2.map(hi => ({ t: 'uint64', v: hi })),
...preimage.historicRootBlockNumberL2.map(hi => ({ t: 'uint256', v: hi })),
{ t: 'uint8', v: preimage.transactionType },
{ t: 'uint8', v: preimage.tokenType },
{ t: 'bytes32', v: preimage.publicInputHash },
Expand Down

0 comments on commit b432486

Please sign in to comment.