From b5f6ab3ccd9b258a8c56e13267d4a66e90ce0163 Mon Sep 17 00:00:00 2001 From: Robert Chu Date: Tue, 23 Apr 2024 11:51:38 -0700 Subject: [PATCH 1/2] Update the gnosis safe api url. The address used to access the gnosis safe API changed in 2023: https://forum.safe.global/t/announcement-to-all-builders-using-safe-services/3225 --- packages/core/src/helpers/gnosisSafeUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() From a38f382597aa223190fe9dee02c86b636e361bcf Mon Sep 17 00:00:00 2001 From: Robert Chu Date: Tue, 23 Apr 2024 11:55:22 -0700 Subject: [PATCH 2/2] Create warm-forks-impress.md --- .changeset/warm-forks-impress.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/warm-forks-impress.md 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/