Skip to content

Commit ad80377

Browse files
committed
fix recovery::tally::test::test_vote_flow
1 parent 08dd801 commit ad80377

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

catalyst-toolbox/src/recovery/tally.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use chain_core::property::Fragment as _;
33
use chain_crypto::{Ed25519Extended, SecretKey};
44
use chain_impl_mockchain::{
55
account::{self, LedgerError, SpendingCounter},
6+
accounting::account::SpendingCounterIncreasing,
67
block::{Block, BlockDate, HeaderId},
78
certificate::{self, VoteCast, VotePlan, VotePlanId},
89
chaineval::ConsensusEvalContext,
@@ -463,7 +464,10 @@ impl FragmentReplayer {
463464
value: utxo.value,
464465
};
465466
wallet
466-
.set_state(utxo.value.into(), Default::default())
467+
.set_state(
468+
utxo.value.into(),
469+
SpendingCounterIncreasing::default().get_valid_counters(),
470+
)
467471
.expect("cannot update wallet state");
468472
wallets.insert(utxo.address.clone(), wallet);
469473
if committee_members.contains(&utxo.address) {

0 commit comments

Comments
 (0)