Skip to content

Commit bef2bf6

Browse files
committed
fix
1 parent fb2f020 commit bef2bf6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ 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,
9696
];
97-
global data: BoundedVec<u8, 32> = BoundedVec::from_array(data_storage);
97+
global data: BoundedVec<u8, 32> = BoundedVec::from_parts(data_storage, 32);
9898
pub(crate) global log: Log<32> = Log {
9999
address: [
100100
0xda, 0xc1, 0x7f, 0x95, 0x8d, 0x2e, 0xe5, 0x23, 0xa2, 0x20, 0x62, 0x06, 0x99, 0x45, 0x97,

ethereum/circuits/lib/src/transaction.nr

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ impl<let MAX_DATA_LEN: u32> From<TxPartial<MAX_DATA_LEN>> for ForeignCallTransac
7979

8080
impl<let MAX_DATA_LEN: u32> From<ForeignCallTransaction<MAX_DATA_LEN>> for TxPartial<MAX_DATA_LEN> {
8181
fn from(tx: ForeignCallTransaction<MAX_DATA_LEN>) -> Self {
82-
let mut data = BoundedVec::new();
83-
data.extend_from_array(tx.data);
82+
let mut data = BoundedVec::from_parts(tx.data, tx.data_len);
8483
TxPartial {
8584
nonce: tx.nonce,
8685
gas_limit: tx.gas_limit,

ethereum/circuits/lib/src/verifiers/receipt/rlp.nr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ pub(crate) fn assert_receipt_rlp_equals<let MAX_ENCODED_LEN: u32>(
1414
receipt_rlp: Fragment<MAX_ENCODED_LEN, u8>,
1515
receipt: TxReceiptPartial,
1616
) {
17+
println(f"receipt_rlp: {receipt_rlp}");
1718
let receipt_rlp_list: RlpList<RECEIPT_FIELDS_COUNT> = decode_list(receipt_rlp);
1819
assert(
1920
receipt_rlp_list.len() == RECEIPT_FIELDS_COUNT,
2021
"Invalid number of fields in receipt RLP",
2122
);
22-
23+
//println(f"receipt_rlp_list: {receipt_rlp_list}");
2324
if (is_pre_byzantium) {
2425
receipt_rlp_list.get(STATE_ROOT_INDEX).assert_eq_bytes32(
2526
"State root",

0 commit comments

Comments
 (0)