Skip to content

Commit

Permalink
test_vote_flow_praos add token funds
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Jan 17, 2022
1 parent 4462735 commit 690f9de
Showing 1 changed file with 13 additions and 0 deletions.
Expand Up @@ -342,13 +342,26 @@ pub fn test_vote_flow_praos() {
&vote_plan,
)
.into();

let minting_policy = MintingPolicy::new();
let token_id = vote_plan.voting_token();

let mut config = ConfigurationBuilder::new();
config
.with_committees(&[
alice.to_committee_id(),
bob.to_committee_id(),
clarice.to_committee_id(),
])
.with_token(InitialToken {
token_id: token_id.clone().into(),
policy: minting_policy.into(),
to: vec![
alice.to_initial_token(1_000_000),
bob.to_initial_token(1_000_000),
clarice.to_initial_token(1_000_000),
],
})
.with_slots_per_epoch(60)
.with_consensus_genesis_praos_active_slot_coeff(
ActiveSlotCoefficient::new(Milli::from_millis(1_000)).unwrap(),
Expand Down

0 comments on commit 690f9de

Please sign in to comment.