Skip to content

Commit 63dee8e

Browse files
committed
fixes
1 parent 5d46de0 commit 63dee8e

File tree

13 files changed

+19
-13
lines changed

13 files changed

+19
-13
lines changed

ethereum/circuits/lib/src/account_with_storage_recursive.nr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub fn get_account_with_storage_recursive(
1818
address: Address,
1919
storage_key: Bytes32,
2020
) -> StorageWithinBlock<1> {
21+
// Safety: veirfication done separately
2122
let (storage_within_block, RecursiveProof { key_hash, verification_key, proof }) = unsafe {
2223
get_account_with_storage_recursive_unconstrained(
2324
chain_id,

ethereum/circuits/lib/src/fixtures/mainnet/cancun/access_list/header.nr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ global encoded_data: [u8; 708] = [
6969

7070
pub(crate) global block_header_partial: BlockHeaderPartial =
7171
BlockHeaderPartial { number, hash, state_root, transactions_root, receipts_root };
72-
pub(crate) global block_header_rlp: BoundedVec<u8, 708> = BoundedVec::from_array(encoded_data);
72+
pub(crate) global block_header_rlp: BoundedVec<u8, 708> =
73+
BoundedVec::from_parts(encoded_data, encoded_length);

ethereum/circuits/lib/src/fixtures/mainnet/cancun/approve/header.nr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ pub(crate) global encoded_data: [u8; 708] = [
6969

7070
pub(crate) global block_header_partial: BlockHeaderPartial =
7171
BlockHeaderPartial { number: NUMBER, hash, state_root, transactions_root, receipts_root };
72-
pub(crate) global block_header_rlp: BoundedVec<u8, 708> = BoundedVec::from_array(encoded_data);
72+
pub(crate) global block_header_rlp: BoundedVec<u8, 708> =
73+
BoundedVec::from_parts(encoded_data, encoded_length);

ethereum/circuits/lib/src/fixtures/mainnet/cancun/approve/log.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ global topics_storage: [Bytes32; 4] = [
8989
0x00, 0x00,
9090
],
9191
];
92-
global topics: BoundedVec<Bytes32, 4> = BoundedVec::from_array(topics_storage);
92+
global topics: BoundedVec<Bytes32, 4> = BoundedVec::from_parts(topics_storage, 3);
9393
global data_storage: Bytes32 = [
9494
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
9595
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x33, 0xf8, 0xff,

ethereum/circuits/lib/src/fixtures/mainnet/cancun/small_block/header.nr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ global encoded_data: [u8; 708] = [
6969

7070
pub(crate) global block_header_partial: BlockHeaderPartial =
7171
BlockHeaderPartial { number, hash, state_root, transactions_root, receipts_root };
72-
pub(crate) global block_header_rlp: BoundedVec<u8, 708> = BoundedVec::from_array(encoded_data);
72+
pub(crate) global block_header_rlp: BoundedVec<u8, 708> =
73+
BoundedVec::from_parts(encoded_data, encoded_length);

ethereum/circuits/lib/src/fixtures/mainnet/cancun/small_block/log.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ global data_storage: Bytes32 = [
9595
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x44, 0x12, 0x7f, 0xb4, 0x3f, 0xa1, 0x00, 0x00,
9696
];
9797

98-
global topics: BoundedVec<Bytes32, 4> = BoundedVec::from_array(topics_storage);
98+
global topics: BoundedVec<Bytes32, 4> = BoundedVec::from_parts(topics_storage, 3);
9999
global data: BoundedVec<u8, 32> = BoundedVec::from_array(data_storage);
100100

101101
pub(crate) global log: Log<32> = Log {

ethereum/circuits/lib/src/fixtures/mainnet/frontier/first/header.nr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ global encoded_data: [u8; 708] = [
6969

7070
pub(crate) global block_header_partial: BlockHeaderPartial =
7171
BlockHeaderPartial { number, hash, state_root, transactions_root, receipts_root };
72-
pub(crate) global block_header_rlp: BoundedVec<u8, 708> = BoundedVec::from_array(encoded_data);
72+
pub(crate) global block_header_rlp: BoundedVec<u8, 708> =
73+
BoundedVec::from_parts(encoded_data, encoded_length);

ethereum/circuits/lib/src/fixtures/mainnet/frontier/zero/header.nr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ global encoded_data: [u8; 708] = [
6969

7070
pub(crate) global block_header_partial: BlockHeaderPartial =
7171
BlockHeaderPartial { number, hash, state_root, transactions_root, receipts_root };
72-
pub(crate) global block_header_rlp: BoundedVec<u8, 708> = BoundedVec::from_array(encoded_data);
72+
pub(crate) global block_header_rlp: BoundedVec<u8, 708> =
73+
BoundedVec::from_parts(encoded_data, encoded_length);

ethereum/circuits/lib/src/fixtures/mainnet/homestead/fork/header.nr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ global encoded_data: [u8; 708] = [
6969

7070
pub(crate) global block_header_partial: BlockHeaderPartial =
7171
BlockHeaderPartial { number, hash, state_root, transactions_root, receipts_root };
72-
pub(crate) global block_header_rlp: BoundedVec<u8, 708> = BoundedVec::from_array(encoded_data);
72+
pub(crate) global block_header_rlp: BoundedVec<u8, 708> =
73+
BoundedVec::from_parts(encoded_data, encoded_length);

ethereum/circuits/lib/src/fixtures/mainnet/london/vitalik_balance/header.nr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ global encoded_data: [u8; 708] = [
6969

7070
pub(crate) global block_header_partial: BlockHeaderPartial =
7171
BlockHeaderPartial { number, hash, state_root, transactions_root, receipts_root };
72-
pub(crate) global block_header_rlp: BoundedVec<u8, 708> = BoundedVec::from_array(encoded_data);
72+
pub(crate) global block_header_rlp: BoundedVec<u8, 708> =
73+
BoundedVec::from_parts(encoded_data, encoded_length);

0 commit comments

Comments
 (0)