Skip to content

Commit

Permalink
Regenerate Noir fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasifaee committed May 29, 2024
1 parent 2f6f99b commit 3d0c59b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 37 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ethereum/circuits/lib/src/log.nr
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use crate::{
verifiers::receipt::{rlp::RECEIPT_FIELDS_COUNT, verify_receipt},
receipt::{
receipt_rlp_from_proof, get_receipt_unconstrained_M, TxType, TxReceiptPartial, ProofInput,
MAX_RECEIPT_RLP_LEN_M, MAX_RECEIPT_ENCODED_LEN_M, MAX_PREFIXED_KEY_NIBBLE_LEN,
MAX_VALUE_LEN_M, MAX_DEPTH_NO_LEAF, MAX_LEAF_LEN_M
MAX_RECEIPT_RLP_LEN_M, MAX_RECEIPT_ENCODED_LEN_M, MAX_PREFIXED_KEY_NIBBLE_LEN, MAX_VALUE_LEN_M,
MAX_DEPTH_NO_LEAF, MAX_LEAF_LEN_M
},
header::get_header
};
Expand Down
11 changes: 2 additions & 9 deletions ethereum/circuits/lib/src/log_test.nr
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ mod extract_log {

#[test]
fn success_approve() {
let log = extract_log::<MAX_LOG_DATA_LEN_M, MAX_LOG_NUM, MAX_RECEIPT_ENCODED_LEN_M>(
approve_receipt_rlp.subfragment(1, MAX_RECEIPT_RLP_LEN_M),
0
);
let log = extract_log::<MAX_LOG_DATA_LEN_M, MAX_LOG_NUM, MAX_RECEIPT_ENCODED_LEN_M>(approve_receipt_rlp.subfragment(1, MAX_RECEIPT_RLP_LEN_M), 0);
assert_eq(log, approve_log);
}

Expand Down Expand Up @@ -101,11 +98,7 @@ mod extract_log {
];

let _ = extract_log::<MAX_LOG_DATA_LEN_M, MAX_LOG_NUM, MAX_RECEIPT_ENCODED_LEN_M>(
Fragment::new(
1,
MAX_RECEIPT_RLP_LEN_M,
receipt_rlp_with_two_log_fields
),
Fragment::new(1, MAX_RECEIPT_RLP_LEN_M, receipt_rlp_with_two_log_fields),
0
);
}
Expand Down
18 changes: 0 additions & 18 deletions ethereum_history_api/circuits/get_transaction/src/main.nr

This file was deleted.

0 comments on commit 3d0c59b

Please sign in to comment.