Skip to content

Commit

Permalink
Merge pull request #2045 from safe-global/GH-2044/fix-safetxhash
Browse files Browse the repository at this point in the history
GH-2044 fixed missing field in the safeTxHash calculation.
  • Loading branch information
DmitryBespalov authored Jul 1, 2024
2 parents c58ff94 + 82faad0 commit a9ba2a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/src/main/java/io/gnosis/data/utils/SafeTxHash.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fun calculateSafeTxHash(
val txGasString = executionInfo.safeTxGas.paddedHexString()
val dataGasString = executionInfo.baseGas.paddedHexString()
val gasTokenString = executionInfo.gasToken.value.paddedHexString()
val refundReceiverString = BigInteger.ZERO.paddedHexString()
val refundReceiverString = (executionInfo.refundReceiver?.value?.value ?: BigInteger.ZERO).paddedHexString()
val nonce = executionInfo.nonce.paddedHexString()

return hash(
Expand Down

0 comments on commit a9ba2a3

Please sign in to comment.