diff --git a/.changeset/warm-forks-impress.md b/.changeset/warm-forks-impress.md new file mode 100644 index 000000000..16890ba27 --- /dev/null +++ b/.changeset/warm-forks-impress.md @@ -0,0 +1,5 @@ +--- +"@usedapp/core": patch +--- + +Update the gnosis safe api url to use: https://safe-transaction-${chain}.safe.global/ instead of https://safe-transaction.${chain}.gnosis.io/ diff --git a/packages/core/src/helpers/gnosisSafeUtils.ts b/packages/core/src/helpers/gnosisSafeUtils.ts index 3225279ee..c4db3b69a 100644 --- a/packages/core/src/helpers/gnosisSafeUtils.ts +++ b/packages/core/src/helpers/gnosisSafeUtils.ts @@ -88,9 +88,9 @@ export const calculateSafeTransactionHash = ( export const getLatestNonce = async (chainId: number, safeAddress: string): Promise => { try { const response = await fetch( - `https://safe-transaction.${ + `https://safe-transaction-${ getChainById(chainId)?.chainName - }.gnosis.io/api/v1/safes/${safeAddress}/all-transactions?limit=1&executed=false&queued=true` + }.safe.global/api/v1/safes/${safeAddress}/all-transactions?limit=1&executed=false&queued=true` ) if (!response.ok) return null const allTransactions = await response.json()