Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change the destination contract for whitelist builder proposal #401

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/Modal/BecomeABuilderModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ const ActionButton: FC<ActionButtonProps> = ({ 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}`)

Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal/ProposalSelectionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const typesMap: Record<ProposalType, ProposalTypeDetails> = {
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:
Expand Down
2 changes: 1 addition & 1 deletion src/pages/proposals/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const componentByType: Partial<ProposalFormByType> = {
withdrawERC20: TreasuryWithdrawProposalForm,
},
BuilderRegistryAbi: {
whitelistBuilder: CreateBuilderProposalForm,
communityApproveBuilder: CreateBuilderProposalForm,
dewhitelistBuilder: RemoveBuilderProposalForm,
},
}
Expand Down
Loading