tests: Use vec! macro for blob creation

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2023-01-19 13:13:12 +00:00
parent 39eb580c30
commit 439c8725a2
+1 -1
View File
@@ -242,7 +242,7 @@ async fn submit_large_extrinsic() {
let alice = pair_signer(AccountKeyring::Alice.pair());
// 2 MiB blob of data.
let bytes: Vec<u8> = (0..2 * 1024 * 1024).map(|i: u32| i as u8).collect();
let bytes = vec![0_u8; 2 * 1024 * 1024];
// The preimage pallet allows storing and managing large byte-blobs.
let tx = node_runtime::tx().preimage().note_preimage(bytes);