Skip to content

Commit

Permalink
refactor: update governance contract prop
Browse files Browse the repository at this point in the history
  • Loading branch information
bayological committed Jan 31, 2024
1 parent a246f2f commit f1810fb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const CreateProposalPreviewStep = () => {

const onSave = useCallback(() => {
writeContract({
address: contracts.governance.address,
address: contracts?.MentoGovernor.address as Address,
abi: GovernorABI,
functionName: "propose",
args: [
Expand All @@ -69,7 +69,7 @@ export const CreateProposalPreviewStep = () => {
JSON.stringify(proposal.metadata),
] as any,
});
}, [writeContract, proposal, contracts.governance.address]);
}, [writeContract, proposal, contracts?.MentoGovernor.address]);

return (
<Wrapper step={formStep} title="Preview your proposal" onSave={onSave}>
Expand Down

0 comments on commit f1810fb

Please sign in to comment.