Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: eth_send_raw_transaction #1357

Merged
merged 19 commits into from
Aug 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: remove patch storage var for 0
  • Loading branch information
obatirou committed Aug 26, 2024
commit 29f104e3c900bca5d84c104db071daec9fb68916
4 changes: 0 additions & 4 deletions tests/src/kakarot/test_kakarot.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,6 @@ def test_raise_gas_limit_too_high(self, cairo_run, gas_limit):
tx_data=tx_data,
)

@SyscallHandler.patch("Kakarot_block_gas_limit", 0)
@given(maxFeePerGas=integers(min_value=2**128, max_value=DEFAULT_PRIME - 1))
def test_raise_max_fee_per_gas_too_high(self, cairo_run, maxFeePerGas):
tx = {
Expand All @@ -506,7 +505,6 @@ def test_raise_max_fee_per_gas_too_high(self, cairo_run, maxFeePerGas):
tx_data=tx_data,
)

@SyscallHandler.patch("Kakarot_block_gas_limit", 0)
@pytest.mark.parametrize("tx", TRANSACTIONS)
def test_raise_transaction_gas_limit_too_high(self, cairo_run, tx):
tx_data = list(rlp_encode_signed_data(tx))
Expand Down Expand Up @@ -545,7 +543,6 @@ def max_priority_fee_too_high(draw):
return (maxFeePerGas, maxPriorityFeePerGas)

@SyscallHandler.patch("Kakarot_block_gas_limit", TRANSACTION_GAS_LIMIT)
@SyscallHandler.patch("Kakarot_base_fee", 0)
@given(max_priority_fee_too_high())
def test_raise_max_priority_fee_too_high(
self, cairo_run, max_priority_fee_too_high
Expand Down Expand Up @@ -576,7 +573,6 @@ def test_raise_max_priority_fee_too_high(

@SyscallHandler.patch("IERC20.balanceOf", lambda _, __: [0, 0])
@SyscallHandler.patch("Kakarot_block_gas_limit", TRANSACTION_GAS_LIMIT)
@SyscallHandler.patch("Kakarot_base_fee", 0)
@pytest.mark.parametrize("tx", TRANSACTIONS)
def test_raise_not_enough_ETH_balance(self, cairo_run, tx):
tx_data = list(rlp_encode_signed_data(tx))
Expand Down