rename proposal redeemer Unlock to UnlockStake
This commit is contained in:
parent
3238335cdb
commit
9aa8557183
5 changed files with 11 additions and 11 deletions
|
|
@ -8,7 +8,7 @@ module Sample.Proposal.PrivilegeEscalate (
|
|||
import Agora.Proposal (
|
||||
ProposalDatum (..),
|
||||
ProposalId (ProposalId),
|
||||
ProposalRedeemer (Unlock, Vote),
|
||||
ProposalRedeemer (UnlockStake, Vote),
|
||||
ProposalStatus (VotingReady),
|
||||
ProposalVotes (ProposalVotes),
|
||||
ResultTag (ResultTag),
|
||||
|
|
@ -102,7 +102,7 @@ mkProposalInputOutputDatum op =
|
|||
in wrap op (,) proposal proposalWithVotes
|
||||
|
||||
mkProposalRedeemer :: Operation -> ProposalRedeemer
|
||||
mkProposalRedeemer op = wrap op const (Vote defResultTag) Unlock
|
||||
mkProposalRedeemer op = wrap op const (Vote defResultTag) UnlockStake
|
||||
|
||||
proposalRef :: TxOutRef
|
||||
proposalRef = TxOutRef proposalTxRef 1
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import Agora.Proposal (
|
|||
ProposalDatum (..),
|
||||
ProposalEffectGroup,
|
||||
ProposalId (..),
|
||||
ProposalRedeemer (Unlock),
|
||||
ProposalRedeemer (UnlockStake),
|
||||
ProposalStatus (..),
|
||||
ProposalVotes (..),
|
||||
ResultTag (..),
|
||||
|
|
@ -210,7 +210,7 @@ proposalRef :: TxOutRef
|
|||
proposalRef = TxOutRef stakeTxRef 0
|
||||
|
||||
proposalRedeemer :: ProposalRedeemer
|
||||
proposalRedeemer = Unlock
|
||||
proposalRedeemer = UnlockStake
|
||||
|
||||
mkProposalInputDatum ::
|
||||
StakeParameters ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue