From 2375d39959945ae5c98164a82ca7ceea361b1261 Mon Sep 17 00:00:00 2001 From: MirandaWood Date: Mon, 2 Dec 2024 18:14:56 +0000 Subject: [PATCH] fix: use new blob prefixes on all rollup lib tests --- .../crates/rollup-lib/src/base/private_base_rollup.nr | 2 +- .../crates/rollup-lib/src/base/public_base_rollup.nr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/noir-projects/noir-protocol-circuits/crates/rollup-lib/src/base/private_base_rollup.nr b/noir-projects/noir-protocol-circuits/crates/rollup-lib/src/base/private_base_rollup.nr index 05eae7394dc..3aeb7191f62 100644 --- a/noir-projects/noir-protocol-circuits/crates/rollup-lib/src/base/private_base_rollup.nr +++ b/noir-projects/noir-protocol-circuits/crates/rollup-lib/src/base/private_base_rollup.nr @@ -849,7 +849,7 @@ mod tests { array_concat([TX_FEE_PREFIX, 0], (0).to_be_bytes::<29>()), true, ); - tx_effects[2] = field_from_bytes([NOTES_PREFIX, 0, 50 as u8], true); + tx_effects[2] = encode_blob_prefix(NOTES_PREFIX, 50); for i in 0..50 { tx_effects[i + 3] = builder.tube_data.note_hashes.storage()[i].value(); } diff --git a/noir-projects/noir-protocol-circuits/crates/rollup-lib/src/base/public_base_rollup.nr b/noir-projects/noir-protocol-circuits/crates/rollup-lib/src/base/public_base_rollup.nr index ac7e8f9ca1c..bf927c8f90c 100644 --- a/noir-projects/noir-protocol-circuits/crates/rollup-lib/src/base/public_base_rollup.nr +++ b/noir-projects/noir-protocol-circuits/crates/rollup-lib/src/base/public_base_rollup.nr @@ -1019,7 +1019,7 @@ mod tests { array_concat([TX_FEE_PREFIX, 0], (0).to_be_bytes::<29>()), true, ); - tx_effects[2] = field_from_bytes([NOTES_PREFIX, 0, 50 as u8], true); + tx_effects[2] = encode_blob_prefix(NOTES_PREFIX, 50); for i in 0..50 { tx_effects[i + 3] = builder.avm_data.note_hashes.storage()[i].value(); }