diff --git a/platforms/src/GnosisSafe/Providers/__tests__/gnosisSafe.test.ts b/platforms/src/GnosisSafe/Providers/__tests__/gnosisSafe.test.ts index 3b08e1e0ac..a21f955676 100644 --- a/platforms/src/GnosisSafe/Providers/__tests__/gnosisSafe.test.ts +++ b/platforms/src/GnosisSafe/Providers/__tests__/gnosisSafe.test.ts @@ -36,7 +36,7 @@ describe("Verification succeeds", function () { // Check the request to get the NFTs expect(axios.get).toHaveBeenCalledTimes(1); - expect(mockedAxios.get).toBeCalledWith(`${gnosisSafeApiEndpoint}owners/${MOCK_ADDRESS}/safes`); + expect(mockedAxios.get).toBeCalledWith(`${gnosisSafeApiEndpoint}owners/${MOCK_ADDRESS}/safes/`); expect(gnosisSafePayload).toEqual({ valid: true, @@ -65,7 +65,7 @@ describe("Verification fails", function () { // Check the request to get the NFTs expect(axios.get).toHaveBeenCalledTimes(1); - expect(mockedAxios.get).toBeCalledWith(`${gnosisSafeApiEndpoint}owners/${MOCK_ADDRESS}/safes`); + expect(mockedAxios.get).toBeCalledWith(`${gnosisSafeApiEndpoint}owners/${MOCK_ADDRESS}/safes/`); expect(gnosisSafePayload).toEqual({ valid: false, @@ -88,7 +88,7 @@ describe("Verification fails", function () { // Check the request to get the NFTs expect(axios.get).toHaveBeenCalledTimes(1); - expect(mockedAxios.get).toBeCalledWith(`${gnosisSafeApiEndpoint}owners/${MOCK_ADDRESS}/safes`); + expect(mockedAxios.get).toBeCalledWith(`${gnosisSafeApiEndpoint}owners/${MOCK_ADDRESS}/safes/`); expect(gnosisSafePayload).toEqual({ valid: false, @@ -115,7 +115,7 @@ describe("Verification fails", function () { // Check the request to get the NFTs expect(axios.get).toHaveBeenCalledTimes(1); - expect(mockedAxios.get).toBeCalledWith(`${gnosisSafeApiEndpoint}owners/${MOCK_ADDRESS}/safes`); + expect(mockedAxios.get).toBeCalledWith(`${gnosisSafeApiEndpoint}owners/${MOCK_ADDRESS}/safes/`); expect(gnosisSafePayload).toEqual({ valid: false, @@ -135,7 +135,7 @@ describe("Verification fails", function () { // Check the request to get the NFTs expect(axios.get).toHaveBeenCalledTimes(1); - expect(mockedAxios.get).toBeCalledWith(`${gnosisSafeApiEndpoint}owners/${MOCK_ADDRESS}/safes`); + expect(mockedAxios.get).toBeCalledWith(`${gnosisSafeApiEndpoint}owners/${MOCK_ADDRESS}/safes/`); expect(gnosisSafePayload).toEqual({ valid: false, diff --git a/platforms/src/GnosisSafe/Providers/gnosisSafe.ts b/platforms/src/GnosisSafe/Providers/gnosisSafe.ts index 46c2ad77ff..a8b07cbaf1 100644 --- a/platforms/src/GnosisSafe/Providers/gnosisSafe.ts +++ b/platforms/src/GnosisSafe/Providers/gnosisSafe.ts @@ -9,7 +9,7 @@ import axios from "axios"; import { getAddress } from "../../utils/signer"; // https://safe-transaction.gnosis.io/ -export const gnosisSafeApiEndpoint = "https://safe-transaction.gnosis.io/api/v1/"; +export const gnosisSafeApiEndpoint = "https://safe-transaction-mainnet.safe.global/api/v1/"; type OwnerSafesResponse = { safes: string[]; @@ -62,7 +62,7 @@ export class GnosisSafeProvider implements Provider { } const getSafes = async (address: string): Promise => { - const requestResponse = await axios.get(`${gnosisSafeApiEndpoint}owners/${address}/safes`); + const requestResponse = await axios.get(`${gnosisSafeApiEndpoint}owners/${address}/safes/`); if (requestResponse.status != 200) { throw [`HTTP Error '${requestResponse.status}'. Details: '${requestResponse.statusText}'.`]; diff --git a/platforms/src/GtcStaking/App-Bindings.ts b/platforms/src/GtcStaking/App-Bindings.ts index fc30ee1ec6..24f1414d79 100644 --- a/platforms/src/GtcStaking/App-Bindings.ts +++ b/platforms/src/GtcStaking/App-Bindings.ts @@ -4,6 +4,7 @@ import { AppContext, Platform, PlatformOptions, ProviderPayload } from "../types export class GTCStakingPlatform implements Platform { platformId = "GtcStaking"; path = ""; + isEVM = true; clientId: string = null; redirectUri: string = null;