Skip to content

Commit

Permalink
fix test compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
tbro committed Nov 1, 2024
1 parent 656c004 commit 5448181
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion sequencer/src/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ mod test {
base_fee: 1.into(),
fee_recipient: FeeAccount::default(),
fee_contract: Some(Address::default()),
bid_recipient: None
bid_recipient: None,
stake_table_contract: None
}
);
assert_eq!(
Expand Down Expand Up @@ -481,6 +482,7 @@ mod test {
fee_recipient: FeeAccount::default(),
bid_recipient: None,
fee_contract: None,
stake_table_contract: None
}
);
assert_eq!(
Expand Down
4 changes: 2 additions & 2 deletions sequencer/src/message_compat_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ use vbs::{

#[cfg(feature = "testing")]
async fn test_message_compat<Ver: StaticVersionType>(_ver: Ver) {
use espresso_types::{Payload, SeqTypes, Transaction};
use espresso_types::{Payload, SeqTypes, StakeCommittee, Transaction};
use hotshot_example_types::node_types::TestVersions;
use hotshot_types::{traits::network::Topic, PeerConfig};

let (sender, priv_key) = PubKey::generated_from_seed_indexed(Default::default(), 0);
let signature = PubKey::sign(&priv_key, &[]).unwrap();
let membership = StaticCommittee::new(
let membership = StakeCommittee::new(
vec![], /* no elligible leaders */
vec![PeerConfig::default()], /* one committee member, necessary to generate a VID share */
Topic::Global,
Expand Down
1 change: 1 addition & 0 deletions types/src/reference_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ fn reference_chain_config() -> crate::v0_3::ChainConfig {
fee_contract: Some(Default::default()),
fee_recipient: Default::default(),
bid_recipient: Some(Default::default()),
stake_table_contract: Some(Default::default()),
}
}

Expand Down

0 comments on commit 5448181

Please sign in to comment.