Correct shimmed setting of a secq256k1 key

This commit is contained in:
Luke Parker
2024-08-15 11:44:44 -04:00
parent 843396fe8f
commit 5f1fcff75c

View File

@@ -233,7 +233,15 @@ async fn validator_set_rotation() {
&serai, &serai,
&last_participant, &last_participant,
embedded_elliptic_curve, 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(), i.try_into().unwrap(),
) )
.await; .await;