Skip to content

Commit 63a76e7

Browse files
committed
fixes
1 parent 4609e92 commit 63a76e7

File tree

17 files changed

+100
-63
lines changed

17 files changed

+100
-63
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pub(crate) mod frontier;
22
pub(crate) mod homestead;
3-
pub(crate) mod london;
3+
pub mod london;
44
pub mod paris;
55
pub(crate) mod cancun;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
pub(crate) mod header;
2-
pub(crate) mod account;
3-
pub(crate) mod state_proof;
1+
pub mod header;
2+
pub mod account;
3+
pub mod state_proof;

ethereum/circuits/lib/src/fixtures/mainnet/london/crypto_punks/account.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ pub(crate) global code_hash: Bytes32 = [
2626
0xe4, 0x16, 0x7f, 0x0b, 0x74, 0xea, 0x23, 0x05, 0x66, 0xdd, 0xec, 0xe7, 0xae, 0x9d, 0x6f, 0x0b,
2727
];
2828

29-
pub(crate) global account: Account = Account { nonce, balance, storage_root, code_hash };
29+
pub global account: Account = Account { nonce, balance, storage_root, code_hash };

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ global encoded_data: [u8; 708] = [
6767
0x00, 0x00, 0x00, 0x00,
6868
];
6969

70-
pub(crate) global block_header_partial: BlockHeaderPartial =
70+
pub 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> =
72+
pub global block_header_rlp: BoundedVec<u8, 708> =
7373
BoundedVec::from_parts(encoded_data, encoded_length);

ethereum/circuits/lib/src/fixtures/mainnet/london/crypto_punks/state_proof.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,4 +438,4 @@ pub(crate) global proof_input: ProofInput<66, 110, 10, 148> = ProofInput {
438438
},
439439
};
440440

441-
pub(crate) global proof_input_serialized: [Field; 5645] = proof_input.serialize();
441+
pub global proof_input_serialized: [Field; 5645] = proof_input.serialize();
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
pub(crate) mod token;
1+
pub mod token;
22
mod token_int_test;
33
pub(crate) mod slot;
44
mod slot_test;
5-
pub(crate) mod token_list;
5+
pub mod token_list;
66
pub(crate) mod chain_id;
7-
pub(crate) mod nft;
8-
pub(crate) mod nft_list;
7+
pub mod nft;
8+
pub mod nft_list;

vlayer/ethereum/circuits/lib/src/nft.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub struct ERC721Token {
1313
pub chain_id: u32,
1414
}
1515

16-
trait ERC721 {
16+
pub trait ERC721 {
1717
fn get_owner(self, token_id: Bytes32, block_number: u64) -> Address;
1818
}
1919

vlayer/ethereum/circuits/lib/src/nft_list.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mod mainnet {
1+
pub mod mainnet {
22
use crate::chain_id;
33
use crate::nft::ERC721Token;
44
use crate::slot::{dynamic_array_with_precalculated_slot, mapping, struct_slot};

vlayer/ethereum/circuits/lib/src/token_list.nr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
mod mainnet {
1+
pub mod mainnet {
22
use crate::chain_id;
33
use crate::token::ERC20Token;
44
use dep::ethereum::uint256::U256;
55

6-
global USDC: ERC20Token = ERC20Token {
6+
pub global USDC: ERC20Token = ERC20Token {
77
address: [
88
0xa0, 0xb8, 0x69, 0x91, 0xc6, 0x21, 0x8b, 0x36, 0xc1, 0xd1, 0x9d, 0x4a, 0x2e, 0x9e,
99
0xb0, 0xce, 0x36, 0x06, 0xeb, 0x48,

vlayer/examples/circuits/is_ape_owner/src/main.nr

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
use dep::ethereum::misc::bytes32::field_to_bytes32;
21
use dep::ethereum::misc::types::Address;
3-
use dep::std::field::bytes32_to_field;
2+
use dep::token::nft::ERC721;
43
use dep::token::nft_list::mainnet::BORED_APE_YACHT_CLUB;
54

65
mod main_test;

0 commit comments

Comments
 (0)