Skip to content

Commit

Permalink
Fix SubmitProposal examples
Browse files Browse the repository at this point in the history
  • Loading branch information
errfrom committed Aug 8, 2024
1 parent 19df4b6 commit 0fdc13c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
15 changes: 9 additions & 6 deletions examples/Gov/SubmitVote.purs
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,15 @@ submitProposal = do
getRewardAddresses

tx <- submitTxFromBuildPlan Map.empty mempty
[ SubmitProposal $ VotingProposal
{ govAction: GovAction.Info
, anchor: dummyAnchor
, deposit: unwrap govActionDeposit
, returnAddr: rewardAddr
}
[ SubmitProposal
( VotingProposal
{ govAction: GovAction.Info
, anchor: dummyAnchor
, deposit: unwrap govActionDeposit
, returnAddr: rewardAddr
}
)
Nothing
]
let txHash = Transaction.hash tx
awaitTxConfirmed txHash
Expand Down
15 changes: 9 additions & 6 deletions examples/Gov/SubmitVoteScript.purs
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,15 @@ submitProposal = do
getRewardAddresses

tx <- submitTxFromBuildPlan Map.empty mempty
[ SubmitProposal $ VotingProposal
{ govAction: GovAction.Info
, anchor: dummyAnchor
, deposit: unwrap govActionDeposit
, returnAddr: rewardAddr
}
[ SubmitProposal
( VotingProposal
{ govAction: GovAction.Info
, anchor: dummyAnchor
, deposit: unwrap govActionDeposit
, returnAddr: rewardAddr
}
)
Nothing
]
let txHash = Transaction.hash tx
awaitTxConfirmed txHash
Expand Down

0 comments on commit 0fdc13c

Please sign in to comment.