Skip to content

Commit ef3e87c

Browse files
committed
fix gas
1 parent 42286b7 commit ef3e87c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

barretenberg/cpp/src/barretenberg/vm2/common/aztec_constants.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
#define AVM_L1TOL2MSGEXISTS_BASE_L2_GAS 540
221221
#define AVM_GETCONTRACTINSTANCE_BASE_L2_GAS 6108
222222
#define AVM_EMITUNENCRYPTEDLOG_BASE_L2_GAS 15
223-
#define AVM_SENDL2TOL1MSG_BASE_L2_GAS 418
223+
#define AVM_SENDL2TOL1MSG_BASE_L2_GAS 478
224224
#define AVM_CALL_BASE_L2_GAS 9936
225225
#define AVM_STATICCALL_BASE_L2_GAS 9936
226226
#define AVM_RETURN_BASE_L2_GAS 9

noir-projects/noir-protocol-circuits/crates/types/src/constants.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ pub global AVM_EMITNULLIFIER_BASE_L2_GAS: u32 = (516 + L2_GAS_DISTRIBUTED_STORAG
11361136
pub global AVM_L1TOL2MSGEXISTS_BASE_L2_GAS: u32 = 108 * 5; // SLOW_SIM_MUL = 4 (+1 for slow proving)
11371137
pub global AVM_GETCONTRACTINSTANCE_BASE_L2_GAS: u32 = 1527 * 4; // SLOW_SIM_MUL = 4
11381138
pub global AVM_EMITUNENCRYPTEDLOG_BASE_L2_GAS: u32 = 15;
1139-
pub global AVM_SENDL2TOL1MSG_BASE_L2_GAS: u32 = (9 + L2_GAS_PER_L2_TO_L1_MSG) * 2; // SLOW_SIM_MUL = 2
1139+
pub global AVM_SENDL2TOL1MSG_BASE_L2_GAS: u32 = (39 + L2_GAS_PER_L2_TO_L1_MSG) * 2; // SLOW_SIM_MUL = 2
11401140
// See PR https://github.com/AztecProtocol/aztec-packages/pull/15495 on why we need this buffer.
11411141
pub global AVM_CALL_BASE_L2_GAS: u32 = 3312 * 3; // SLOW_SIM_MUL = 3
11421142
pub global AVM_STATICCALL_BASE_L2_GAS: u32 = 3312 * 3; // SLOW_SIM_MUL = 3

yarn-project/constants/src/constants.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ export const AVM_EMITNULLIFIER_BASE_L2_GAS = 30800;
446446
export const AVM_L1TOL2MSGEXISTS_BASE_L2_GAS = 540;
447447
export const AVM_GETCONTRACTINSTANCE_BASE_L2_GAS = 6108;
448448
export const AVM_EMITUNENCRYPTEDLOG_BASE_L2_GAS = 15;
449-
export const AVM_SENDL2TOL1MSG_BASE_L2_GAS = 418;
449+
export const AVM_SENDL2TOL1MSG_BASE_L2_GAS = 478;
450450
export const AVM_CALL_BASE_L2_GAS = 9936;
451451
export const AVM_STATICCALL_BASE_L2_GAS = 9936;
452452
export const AVM_RETURN_BASE_L2_GAS = 9;
@@ -538,4 +538,4 @@ export enum GeneratorIndex {
538538
SECRET_HASH = 20,
539539
TX_NULLIFIER = 32,
540540
SIGNATURE_PAYLOAD = 34,
541-
}
541+
}

0 commit comments

Comments
 (0)