Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🥁 Update the gnosis safe api url #1152

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/warm-forks-impress.md
Original file line number Diff line number Diff line change
@@ -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/
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
Loading