File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -692,7 +692,7 @@ calculate_safe_hashes() {
692
692
local endpoint=" ${api_url} /api/v1/safes/${address} /multisig-transactions/?nonce=${nonce} "
693
693
694
694
# Get the Safe multisig version.
695
- local version=$( curl -sf " ${api_url} /api/v1/safes/${address} /" | jq -r " .version // \" 0.0.0\" " )
695
+ local version=$( curl -sf " ${api_url} /api/v1/safes/${address} /" | jq -r " .version // \" 0.0.0\" " || echo " 0.0.0 " )
696
696
697
697
# If --interactive mode is enabled, the version value can be overridden by the user's input.
698
698
if [[ -n " $interactive " ]]; then
736
736
validate_value " $nonce " " nonce"
737
737
738
738
# Fetch the transaction data from the API.
739
- local response=$( curl -sf " $endpoint " )
739
+ local response=$( curl -sf " $endpoint " || echo " {} " )
740
740
741
741
# Set the default index value for the transaction array.
742
742
local idx=0
795
795
local gas_price=$( echo " $response " | jq -r " .results[$idx ].gasPrice // \" 0\" " )
796
796
local gas_token=$( echo " $response " | jq -r " .results[$idx ].gasToken // \" $ZERO_ADDRESS \" " )
797
797
local refund_receiver=$( echo " $response " | jq -r " .results[$idx ].refundReceiver // \" $ZERO_ADDRESS \" " )
798
- local nonce=$( echo " $response " | jq -r " .results[$idx ].nonce // \" 0\" " )
799
798
local data_decoded=$( echo " $response " | jq -r " .results[$idx ].dataDecoded // \" 0x\" " )
800
799
801
800
# If --interactive mode is enabled, the parameter values can be overridden by the user's input.
You can’t perform that action at this time.
0 commit comments