Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
noot committed Sep 5, 2024
1 parent 938df30 commit f8db715
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/astria-sequencer/src/app/vote_extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ mod test {
state.put_chain_id_and_revision_number(chain_id.clone());
let validator_set = ValidatorSet::new_from_updates(vec![
ValidatorUpdate {
power: 1u16.into(),
power: 5u16.into(),
verification_key: SigningKey::from([0; 32]).verification_key(),
},
ValidatorUpdate {
Expand All @@ -619,8 +619,9 @@ mod test {

let round = 1u16;
let vote_extension_height = 1;
let vote_extension_message = b"noot".to_vec();
let vote_extension = CanonicalVoteExtension {
extension: vec![],
extension: vote_extension_message.clone(),
height: vote_extension_height,
round: i64::from(round),
chain_id: chain_id.to_string(),
Expand All @@ -638,7 +639,7 @@ mod test {
},
sig_info: Flag(tendermint::block::BlockIdFlag::Commit),
extension_signature: Some(signature.to_bytes().to_vec().try_into().unwrap()),
vote_extension: message.into(),
vote_extension: vote_extension_message.into(),
}],
};
validate_vote_extensions(
Expand Down

0 comments on commit f8db715

Please sign in to comment.