Skip to content

Commit

Permalink
Merge pull request #6 from Cyfrin/fix/order
Browse files Browse the repository at this point in the history
fix: tx order
  • Loading branch information
PatrickAlphaC authored Jan 27, 2025
2 parents 75097ee + e624d9c commit 78f2d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion safe_hashes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ EOF
local confirmation_count=$(echo "$response" | jq -r ".results[$idx].confirmations | length // \"0\"")

# Extract signatures from confirmations array and concatenate them
local signatures=$(echo "$response" | jq -r ".results[$idx].confirmations[].signature" | paste -sd '' -)
local signatures=$(echo "$response" | jq -r '.results[0].confirmations | reverse | .[].signature' | sed '1!s/0x//' | tr -d '\n')

# If signatures is empty, use 0x
if [[ -z "$signatures" ]]; then
Expand Down

0 comments on commit 78f2d13

Please sign in to comment.