-
Notifications
You must be signed in to change notification settings - Fork 3
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
updated eip-1559 tests #520
base: develop
Are you sure you want to change the base?
Conversation
# Conflicts: # integration/tests/conftest.py
# Conflicts: # conftest.py # integration/tests/conftest.py
|
||
if environment.name in prod_envs or environment.use_bank: | ||
lamports = 2 * LAMPORT_PER_SOL | ||
evm_loader.send_sol(bank_account, user.solana_account.pubkey(), lamports) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
environment.use_bank condition is enough
lamports value for if and else can be the same and "if balance < lamports" is more actual forcase if we use environment.use_bank because in this case we don't create a new user
@@ -146,9 +146,7 @@ def validate_transfer_positive( | |||
) | |||
|
|||
# Verify that the effective gas price does not exceed the max fee per gas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like you need to change comments like this as well
@@ -116,6 +116,7 @@ def test_scheduled_trx_wrong_index( | |||
with pytest.raises(solana.rpc.core.RPCException, match=InstructionAsserts.TRANSACTION_TREE_INVALID_DATA): | |||
evm_loader.create_tree_account(neon_user, treasury_pool, tx.encode(), environment.sol_mint_id) | |||
|
|||
@pytest.mark.eip_1559 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove eip_1559 marks from scheduled transactions tests
there are different type of transactions
@@ -308,6 +309,7 @@ def make_raw_tx_eip_1559( | |||
gas: tp.Union[int, tp.Literal["auto"], None], | |||
max_priority_fee_per_gas: tp.Union[int, tp.Literal["auto"], None], | |||
max_fee_per_gas: tp.Union[int, tp.Literal["auto"], None], | |||
base_fee_per_gas: tp.Union[int, tp.Literal["auto"]] = "auto", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seams you don't use it
No description provided.