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

updated eip-1559 tests #520

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

IvanAdamovNeon
Copy link

No description provided.

@IvanAdamovNeon IvanAdamovNeon marked this pull request as ready for review February 21, 2025 21:20

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)
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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",
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants