From 7874ee7b3adb11fdcf58126dafb2ea2ee22de11e Mon Sep 17 00:00:00 2001 From: Pascal Marco Caversaccio Date: Mon, 3 Mar 2025 18:04:40 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Use=20Temporarily=20Safe?= =?UTF-8?q?=20Client=20Gateway?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pascal Marco Caversaccio --- safe_hashes.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/safe_hashes.sh b/safe_hashes.sh index 6e11809..f194208 100755 --- a/safe_hashes.sh +++ b/safe_hashes.sh @@ -528,12 +528,13 @@ calculate_safe_hashes() { validate_address "$address" # Get the API URL and chain ID for the specified network. - local api_url=$(get_api_url "$network") + # local api_url=$(get_api_url "$network")$ + local api_url="https://safe-client.safe.global/v1/chains" local chain_id=$(get_chain_id "$network") - local endpoint="${api_url}/api/v1/safes/${address}/multisig-transactions/?nonce=${nonce}" + local endpoint="${api_url}/${chain_id}/safes/${address}/multisig-transactions/raw?nonce=${nonce}" # Get the Safe multisig version. - local version=$(curl -sf "${api_url}/api/v1/safes/${address}/" | jq -r ".version // \"0.0.0\"") + local version="1.3.0" # -> set here your version! # Calculate the domain and message hashes for off-chain messages. if [[ -n "$message_file" ]]; then