Skip to content

Commit

Permalink
Correct shimmed setting of a secq256k1 key
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Aug 15, 2024
1 parent 843396f commit 5f1fcff
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion substrate/client/tests/validator_sets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,15 @@ async fn validator_set_rotation() {
&serai,
&last_participant,
embedded_elliptic_curve,
vec![0; 32].try_into().unwrap(),
vec![
0;
match embedded_elliptic_curve {
EmbeddedEllipticCurve::Embedwards25519 => 32,
EmbeddedEllipticCurve::Secq256k1 => 33,
}
]
.try_into()
.unwrap(),
i.try_into().unwrap(),
)
.await;
Expand Down

0 comments on commit 5f1fcff

Please sign in to comment.