mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Update Update and substrate_signers to [u8; 32] from Vec<u8>
A commit made while testing moved them from network-key-indexed to Substrate-key-indexed. Since Substrate keys have a fixed-length, fitting within the Copy boundary, there's no reason for it to not use an array.
This commit is contained in:
@@ -125,7 +125,7 @@ pub(crate) async fn sign_batch(
|
||||
key,
|
||||
batch: this_batch,
|
||||
}) => {
|
||||
assert_eq!(&key, &id.key);
|
||||
assert_eq!(key.as_slice(), &id.key);
|
||||
|
||||
if batch.is_none() {
|
||||
assert!(PublicKey::from_raw(id.key.clone().try_into().unwrap())
|
||||
|
||||
Reference in New Issue
Block a user