Skip to content

Commit

Permalink
fix(platforms): add path to staking app-bindings and return checkSum … (
Browse files Browse the repository at this point in the history
#1215)

* fix(platforms): add path to staking app-bindings and return checkSum address from getAddress

* fix(platforms): checkSum address in individual provider
  • Loading branch information
Tim Schultz authored May 1, 2023
1 parent 38f7841 commit d789a1b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import axios from "axios";
jest.mock("axios");

const mockedAxios = axios as jest.Mocked<typeof axios>;
const MOCK_ADDRESS = "0xcF314CE817E25b4F784bC1f24c9A79A525fEC50f";
const MOCK_ADDRESS = "0xEf1c6E67703c7BD7107eed8303Fbe6EC2554BF6B";

const validResponseList = ["safe-1", "safe-2", "safe-3"];

Expand Down
3 changes: 2 additions & 1 deletion platforms/src/GnosisSafe/Providers/gnosisSafe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { RequestPayload, VerifiedPayload } from "@gitcoin/passport-types";

// ----- Libs
import axios from "axios";
import { utils } from "ethers";

// ----- Credential verification
import { getAddress } from "../../utils/signer";
Expand Down Expand Up @@ -35,7 +36,7 @@ export class GnosisSafeProvider implements Provider {
const error = [];

// Get the address. Note: this is expected to be a checksumed address (this is what the gnosis safe API expects)
const address = await getAddress(payload);
const address = utils.getAddress(await getAddress(payload));

// Check if address is owner of at least 1 safe
try {
Expand Down
2 changes: 1 addition & 1 deletion platforms/src/GtcStaking/App-Bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AppContext, Platform, PlatformOptions, ProviderPayload } from "../types

export class GTCStakingPlatform implements Platform {
platformId = "GtcStaking";
path = "";
path = "GtcStaking";
isEVM = true;
clientId: string = null;
redirectUri: string = null;
Expand Down

0 comments on commit d789a1b

Please sign in to comment.