Skip to content

Commit 869ca4f

Browse files
chore(blockifier): update test_syscall_gas_cost_calculation (#6166)
1 parent 17327f4 commit 869ca4f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

crates/blockifier/src/versioned_constants_test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,15 @@ fn test_syscall_gas_cost_calculation() {
212212
let versioned_constants = VersionedConstants::latest_constants().clone();
213213

214214
assert_eq!(
215-
versioned_constants.get_syscall_gas_cost(&SyscallSelector::CallContract).base,
215+
versioned_constants.os_constants.gas_costs.syscalls.call_contract.base,
216216
EXPECTED_CALL_CONTRACT_GAS_COST
217217
);
218218
assert_eq!(
219-
versioned_constants.get_syscall_gas_cost(&SyscallSelector::Secp256k1Mul).base,
219+
versioned_constants.os_constants.gas_costs.syscalls.secp256k1_mul.base,
220220
EXPECTED_SECP256K1MUL_GAS_COST
221221
);
222222
assert_eq!(
223-
versioned_constants.get_syscall_gas_cost(&SyscallSelector::Sha256ProcessBlock).base,
223+
versioned_constants.os_constants.gas_costs.syscalls.sha256_process_block.base,
224224
EXPECTED_SHA256PROCESSBLOCK_GAS_COST
225225
);
226226
}

0 commit comments

Comments
 (0)