Skip to content

Commit 74e913c

Browse files
committed
code size limit
1 parent 4eabe3f commit 74e913c

File tree

3 files changed

+21
-19
lines changed

3 files changed

+21
-19
lines changed

.github/workflows/circuits_e2e.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ jobs:
7777
- name: Generate Proofs
7878
run: |
7979
export PATH="$HOME/.bb:$PATH"
80-
bb prove -b ./ethereum/circuits/get_header/target/get_header.json -w ./ethereum/circuits/get_header/target/get_header.gz -o ./ethereum/circuits/get_header/target/proof
81-
bb prove -b ./ethereum/circuits/get_account/target/get_account.json -w ./ethereum/circuits/get_account/target/get_account.gz -o ./ethereum/circuits/get_account/target/proof
82-
bb prove -b ./ethereum/circuits/get_storage/target/get_storage.json -w ./ethereum/circuits/get_storage/target/get_storage.gz -o ./ethereum/circuits/get_storage/target/proof
83-
bb prove -b ./ethereum/circuits/get_receipt/target/get_receipt.json -w ./ethereum/circuits/get_receipt/target/get_receipt.gz -o ./ethereum/circuits/get_receipt/target/proof
84-
bb prove -b ./ethereum/circuits/get_transaction/target/get_transaction.json -w ./ethereum/circuits/get_transaction/target/get_transaction.gz -o ./ethereum/circuits/get_transaction/target/proof
85-
bb prove -b ./ethereum/circuits/get_log/target/get_log.json -w ./ethereum/circuits/get_log/target/get_log.gz -o ./ethereum/circuits/get_log/target/proof
80+
bb prove -b ./target/get_header.json -w ./target/get_header.gz -o ./target/get_header_proof
81+
bb prove -b ./target/get_account.json -w ./target/get_account.gz -o ./target/get_account_proof
82+
bb prove -b ./target/get_storage.json -w ./target/get_storage.gz -o ./target/get_storage_proof
83+
bb prove -b ./target/get_receipt.json -w ./target/get_receipt.gz -o ./target/get_receipt_proof
84+
bb prove -b ./target/get_transaction.json -w ./target/get_transaction.gz -o ./target/get_transaction_proof
85+
bb prove -b ./target/get_log.json -w ./target/get_log.gz -o ./target/get_log_proof
8686
bb prove -b ./vlayer/examples/circuits/is_dao_worthy/target/is_dao_worthy.json -w ./vlayer/examples/circuits/is_dao_worthy/target/is_dao_worthy.gz -o ./vlayer/examples/circuits/is_dao_worthy/target/proof
8787
bb prove -b ./vlayer/examples/circuits/is_ape_owner/target/is_ape_owner.json -w ./vlayer/examples/circuits/is_ape_owner/target/is_ape_owner.gz -o ./vlayer/examples/circuits/is_ape_owner/target/proof
8888
@@ -105,24 +105,24 @@ jobs:
105105
- name: Generate Verification Keys
106106
run: |
107107
export PATH="$HOME/.bb:$PATH"
108-
bb write_vk -b ./ethereum/circuits/get_header/target/get_header.json -o ./ethereum/circuits/get_header/target/vk
109-
bb write_vk -b ./ethereum/circuits/get_account/target/get_account.json -o ./ethereum/circuits/get_account/target/vk
110-
bb write_vk -b ./ethereum/circuits/get_storage/target/get_storage.json -o ./ethereum/circuits/get_storage/target/vk
111-
bb write_vk -b ./ethereum/circuits/get_receipt/target/get_receipt.json -o ./ethereum/circuits/get_receipt/target/vk
112-
bb write_vk -b ./ethereum/circuits/get_transaction/target/get_transaction.json -o ./ethereum/circuits/get_transaction/target/vk
113-
bb write_vk -b ./ethereum/circuits/get_log/target/get_log.json -o ./ethereum/circuits/get_log/target/vk
108+
bb write_vk -b ./target/get_header.json -o ./target/get_header_vk
109+
bb write_vk -b ./target/get_account.json -o ./target/get_account_vk
110+
bb write_vk -b ./target/get_storage.json -o ./target/get_storage_vk
111+
bb write_vk -b ./target/get_receipt.json -o ./target/get_receipt_vk
112+
bb write_vk -b ./target/get_transaction.json -o ./target/get_transaction_vk
113+
bb write_vk -b ./target/get_log.json -o ./target/get_log_vk
114114
bb write_vk -b ./vlayer/examples/circuits/is_dao_worthy/target/is_dao_worthy.json -o ./vlayer/examples/circuits/is_dao_worthy/target/vk
115115
bb write_vk -b ./vlayer/examples/circuits/is_ape_owner/target/is_ape_owner.json -o ./vlayer/examples/circuits/is_ape_owner/target/vk
116116
117117
- name: Verify Proofs
118118
run: |
119119
export PATH="$HOME/.bb:$PATH"
120-
bb verify -k ./ethereum/circuits/get_header/target/vk -p ./ethereum/circuits/get_header/target/proof
121-
bb verify -k ./ethereum/circuits/get_account/target/vk -p ./ethereum/circuits/get_account/target/proof
122-
bb verify -k ./ethereum/circuits/get_storage/target/vk -p ./ethereum/circuits/get_storage/target/proof
123-
bb verify -k ./ethereum/circuits/get_receipt/target/vk -p ./ethereum/circuits/get_receipt/target/proof
124-
bb verify -k ./ethereum/circuits/get_transaction/target/vk -p ./ethereum/circuits/get_transaction/target/proof
125-
bb verify -k ./ethereum/circuits/get_log/target/vk -p ./ethereum/circuits/get_log/target/proof
120+
bb verify -k ./target/get_header_vk -p ./target/get_header_proof
121+
bb verify -k ./target/get_account_vk -p ./target/get_account_proof
122+
bb verify -k ./target/get_storage_vk -p ./target/get_storage_proof
123+
bb verify -k ./target/get_receipt_vk -p ./target/get_receipt_proof
124+
bb verify -k ./target/get_transaction_vk -p ./target/get_transaction_proof
125+
bb verify -k ./target/get_log_vk -p ./target/get_log_proof
126126
bb verify -k ./vlayer/examples/circuits/is_dao_worthy/target/vk -p ./vlayer/examples/circuits/is_dao_worthy/target/proof
127127
bb verify -k ./vlayer/examples/circuits/is_ape_owner/target/vk -p ./vlayer/examples/circuits/is_ape_owner/target/proof
128128

ethereum/contracts/foundry.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
src = "src"
33
out = "out"
44
libs = ["lib"]
5+
ignored_error_codes = ["code-size"]
56

67
[profile.ci]
78
src = "src"
89
out = "out"
910
libs = ["lib"]
11+
ignored_error_codes = ["code-size"]

ethereum/tests/src/setupAnvil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let anvil: ChildProcess;
55

66
export function setup() {
77
assert(anvil === undefined, 'Anvil already running');
8-
anvil = spawn('anvil');
8+
anvil = spawn('anvil', ['--code-size-limit', '100000']);
99
}
1010

1111
export function teardown() {

0 commit comments

Comments
 (0)