From d74da40885feadf72dff9a68cb2b47f9f670e6d9 Mon Sep 17 00:00:00 2001 From: Antonio Date: Sat, 23 Nov 2024 18:46:07 +0100 Subject: [PATCH] fix: change the destination contract for whitelist builder proposal --- src/components/Modal/BecomeABuilderModal.tsx | 4 ++-- src/components/Modal/ProposalSelectionModal.tsx | 2 +- src/pages/proposals/create.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Modal/BecomeABuilderModal.tsx b/src/components/Modal/BecomeABuilderModal.tsx index cac6fbaa..5e65ed4d 100644 --- a/src/components/Modal/BecomeABuilderModal.tsx +++ b/src/components/Modal/BecomeABuilderModal.tsx @@ -79,8 +79,8 @@ const ActionButton: FC = ({ content, ...props }) => ( const BecomeABuilder: FC = () => { const { canCreateProposal, threshold } = useVotingPower() const router = useRouter() - const contractName: SupportedActionAbiName = 'SimplifiedRewardDistributorAbi' - const action: SupportedProposalActionName = 'whitelistBuilder' + const contractName: SupportedActionAbiName = 'BuilderRegistryAbi' + const action: SupportedProposalActionName = 'communityApproveBuilder' const submitProposal = () => router.push(`/proposals/create?contract=${contractName}&action=${action}`) diff --git a/src/components/Modal/ProposalSelectionModal.tsx b/src/components/Modal/ProposalSelectionModal.tsx index 255b79b9..55d72231 100644 --- a/src/components/Modal/ProposalSelectionModal.tsx +++ b/src/components/Modal/ProposalSelectionModal.tsx @@ -21,7 +21,7 @@ const typesMap: Record = { description: 'Ask the community to vote on adding a Builder to the RootstockCollective’s whitelist, granting them access to the Collective Rewards.', contract: 'BuilderRegistryAbi', - action: 'whitelistBuilder', + action: 'communityApproveBuilder', }, 'Builder Deactivation': { description: diff --git a/src/pages/proposals/create.tsx b/src/pages/proposals/create.tsx index 31ce382a..7ac9da5a 100644 --- a/src/pages/proposals/create.tsx +++ b/src/pages/proposals/create.tsx @@ -18,7 +18,7 @@ const componentByType: Partial = { withdrawERC20: TreasuryWithdrawProposalForm, }, BuilderRegistryAbi: { - whitelistBuilder: CreateBuilderProposalForm, + communityApproveBuilder: CreateBuilderProposalForm, dewhitelistBuilder: RemoveBuilderProposalForm, }, }