aboutsummaryrefslogtreecommitdiffstats
path: root/core/agreement_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/agreement_test.go')
-rw-r--r--core/agreement_test.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/agreement_test.go b/core/agreement_test.go
index be66c96..52c9e4d 100644
--- a/core/agreement_test.go
+++ b/core/agreement_test.go
@@ -131,11 +131,7 @@ func (s *AgreementTestSuite) prepareVote(
nID types.NodeID, voteType types.VoteType, blockHash common.Hash,
period uint64) (
vote *types.Vote) {
- vote = &types.Vote{
- Type: voteType,
- BlockHash: blockHash,
- Period: period,
- }
+ vote = types.NewVote(voteType, blockHash, period)
s.Require().NoError(s.auths[nID].SignVote(vote))
return
}