Skip to content

Commit

Permalink
♻️ Use Temporarily Safe Client Gateway
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Mar 3, 2025
1 parent dd4e383 commit 7874ee7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions safe_hashes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7874ee7

Please sign in to comment.