Skip to content

Commit

Permalink
Update the gnosis safe api url.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
robotoer committed Apr 23, 2024
1 parent 3c2c07a commit b5f6ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/helpers/gnosisSafeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ export const calculateSafeTransactionHash = (
export const getLatestNonce = async (chainId: number, safeAddress: string): Promise<number | null | undefined> => {
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()
Expand Down

0 comments on commit b5f6ab3

Please sign in to comment.