Skip to content

Commit

Permalink
fix: test-unit patch block fee
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed Nov 14, 2024
1 parent 1326fbc commit fd298a1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cairo_zero/tests/src/kakarot/test_kakarot.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,19 @@ def test_raise_transaction_gas_limit_too_high(self, cairo_run, tx):
)

@SyscallHandler.patch("Kakarot_block_gas_limit", TRANSACTION_GAS_LIMIT)
@SyscallHandler.patch(
get_storage_var_address(
"Kakarot_base_fee", int.from_bytes(b"next_block", "big")
),
value=TRANSACTION_GAS_LIMIT * 10**10,
)
@SyscallHandler.patch(
get_storage_var_address(
"Kakarot_base_fee", int.from_bytes(b"next_block", "big")
)
+ 1,
value=0x100,
)
@SyscallHandler.patch("Kakarot_base_fee", TRANSACTION_GAS_LIMIT * 10**10)
@SyscallHandler.patch("Kakarot_chain_id", CHAIN_ID)
@pytest.mark.parametrize("tx", TRANSACTIONS)
Expand Down

0 comments on commit fd298a1

Please sign in to comment.