From e624d9c07489a3e265d89f25cb10c70a56cfcf94 Mon Sep 17 00:00:00 2001 From: Patrick Collins <54278053+PatrickAlphaC@users.noreply.github.com> Date: Sun, 26 Jan 2025 21:10:40 -0500 Subject: [PATCH] fix: tx order --- safe_hashes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/safe_hashes.sh b/safe_hashes.sh index 700e165..1dd6de7 100755 --- a/safe_hashes.sh +++ b/safe_hashes.sh @@ -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