From 4ad3863ec3bae2f9834bee7a9c9679c89a70fc18 Mon Sep 17 00:00:00 2001 From: Sean McCaffery Date: Mon, 9 Sep 2024 15:13:26 -0400 Subject: [PATCH] chore: update versions --- .../react-app-revamp/helpers/getContestContractVersion.ts | 5 ++++- .../helpers/getRewardsModuleContractVersion.ts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/react-app-revamp/helpers/getContestContractVersion.ts b/packages/react-app-revamp/helpers/getContestContractVersion.ts index c709c7630..f0ca67dcc 100644 --- a/packages/react-app-revamp/helpers/getContestContractVersion.ts +++ b/packages/react-app-revamp/helpers/getContestContractVersion.ts @@ -50,6 +50,7 @@ import SetSplitDestinationContract from "@contracts/bytecodeAndAbi/Contest.4.29. import MakeJkLabsSplitConfigurableContract from "@contracts/bytecodeAndAbi/Contest.4.30.makeJkLabsSplitConfigurable.sol/Contest.json"; import AddMetadataFieldsContract from "@contracts/bytecodeAndAbi/Contest.4.31.addMetadataFields.sol/Contest.json"; import CheckCanceledContract from "@contracts/bytecodeAndAbi/Contest.4.32.checkCanceled.sol/Contest.json"; +import MustCancelToWithdrawContract from "@contracts/bytecodeAndAbi/Contest.4.33.mustCancelToWithdraw.sol/Contest.json"; import NewValueAlreadyInArrayContract from "@contracts/bytecodeAndAbi/Contest.4.3.newValueAlreadyInArray.sol/Contest.json"; import UseCustomErrorsContract from "@contracts/bytecodeAndAbi/Contest.4.4.useCustomErrors.sol/Contest.json"; import CleanUpSortingContract from "@contracts/bytecodeAndAbi/Contest.4.5.cleanUpSorting.sol/Contest.json"; @@ -72,7 +73,9 @@ export async function getContestContractVersion(address: string, chainId: number const version: string = await executeWithTimeout(MAX_TIME_TO_WAIT_FOR_RPC, contract.version()); const defaultReturn = { abi: null, version: "unknown" }; - if (version === "4.32") { + if (version === "4.33") { + return { abi: MustCancelToWithdrawContract.abi, version }; + } else if (version === "4.32") { return { abi: CheckCanceledContract.abi, version }; } else if (version === "4.31") { return { abi: AddMetadataFieldsContract.abi, version }; diff --git a/packages/react-app-revamp/helpers/getRewardsModuleContractVersion.ts b/packages/react-app-revamp/helpers/getRewardsModuleContractVersion.ts index db4039fe6..e53c2ffd7 100644 --- a/packages/react-app-revamp/helpers/getRewardsModuleContractVersion.ts +++ b/packages/react-app-revamp/helpers/getRewardsModuleContractVersion.ts @@ -53,6 +53,7 @@ import SetSplitDestinationRewards from "@contracts/bytecodeAndAbi/modules/Reward import MakeJkLabsSplitConfigurableRewards from "@contracts/bytecodeAndAbi/modules/RewardsModule.4.30.makeJkLabsSplitConfigurable.sol/RewardsModule.json"; import AddMetadataFieldsRewards from "@contracts/bytecodeAndAbi/modules/RewardsModule.4.31.addMetadataFields.sol/RewardsModule.json"; import CheckCanceledRewards from "@contracts/bytecodeAndAbi/modules/RewardsModule.4.32.checkCanceled.sol/RewardsModule.json"; +import MustCancelToWithdrawRewards from "@contracts/bytecodeAndAbi/modules/RewardsModule.4.33.mustCancelToWithdraw.sol/RewardsModule.json"; import DeployedRewardsContract from "@contracts/bytecodeAndAbi/modules/RewardsModule.sol/RewardsModule.json"; import { ethers } from "ethers"; import { getEthersProvider } from "./ethers"; @@ -64,7 +65,9 @@ export async function getRewardsModuleContractVersion(address: string, chainId: try { const version: string = await executeWithTimeout(MAX_TIME_TO_WAIT_FOR_RPC, contract.version()); - if (version === "4.32") { + if (version === "4.33") { + return MustCancelToWithdrawRewards.abi; + } else if (version === "4.32") { return CheckCanceledRewards.abi; } else if (version === "4.31") { return AddMetadataFieldsRewards.abi;