remove field names from ProposalLock

so that ps-bridge works correctly
This commit is contained in:
Hongrui Fang 2022-07-13 16:58:13 +08:00
parent 0b55cefd3b
commit 2ed77cd64b

View file

@ -113,9 +113,8 @@ data ProposalLock
-- --
-- @since 0.2.0 -- @since 0.2.0
Created Created
{ craeted :: ProposalId ProposalId
-- ^ The identifier of the proposal. -- ^ The identifier of the proposal.
}
| -- | The stake was used to vote on a proposal. | -- | The stake was used to vote on a proposal.
-- --
-- This kind of lock is placed while voting on a propsoal, in order to -- This kind of lock is placed while voting on a propsoal, in order to
@ -123,11 +122,10 @@ data ProposalLock
-- --
-- @since 0.2.0 -- @since 0.2.0
Voted Voted
{ votedOn :: ProposalId ProposalId
-- ^ The identifier of the proposal. -- ^ The identifier of the proposal.
, votedFor :: ResultTag ResultTag
-- ^ The option which was voted on. This allows votes to be retracted. -- ^ The option which was voted on. This allows votes to be retracted.
}
deriving stock deriving stock
( -- | @since 0.1.0 ( -- | @since 0.1.0
Show Show