Skip to content

Commit

Permalink
Use correct type for invalid extrinsic
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored Nov 27, 2024
1 parent 4d3783a commit 1505ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domains/client/domain-operator/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ async fn test_true_invalid_bundles_undecodeable_tx_proof_creation_and_verificati
};

let undecodable_tx = || {
let undecodable_extrinsic = rand::random::<[u8; 5]>();
let undecodable_extrinsic = rand::random::<[u8; 5]>().to_vec();
OpaqueExtrinsic::from_bytes(&undecodable_extrinsic.encode())
.expect("raw byte encoding and decoding never fails; qed")
};
Expand Down

0 comments on commit 1505ed9

Please sign in to comment.