From 6725fad90f7ff1e96ea7d1f6e52c7116e6b5a052 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Tue, 21 Sep 2021 17:45:51 +0200 Subject: [PATCH] Avoid 301 redirect when getting safes Signed-off-by: Alexis Sellier --- src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index b2898ac58..b5ddb4701 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -292,7 +292,7 @@ export async function isSafe(address: string, config: Config): Promise if (! config.safe.api) return false; const addr = ethers.utils.getAddress(address); - const response = await fetch(`${config.safe.api}/api/v1/safes/${addr}`, { method: 'HEAD' }); + const response = await fetch(`${config.safe.api}/api/v1/safes/${addr}/`, { method: 'HEAD' }); return response.ok; } @@ -302,7 +302,7 @@ export async function getSafe(address: string, config: Config): Promise