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

added tests for batch operations #331

Merged
merged 1 commit into from
May 10, 2024

Conversation

IvanAdamovNeon
Copy link

No description provided.

@IvanAdamovNeon IvanAdamovNeon force-pushed the NDEV-1523-batch-operations-tests branch 2 times, most recently from df600e6 to d089113 Compare May 10, 2024 09:23
"""
account = self.accounts[0]
evm_version: Version = self.web3_client.get_evm_version_number()
data_or_input_field_name = "data" if evm_version < Version("1.13.0") else "input"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please explain why this condition is here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the up-to-date documentation states that eth_call params expect field "input"
https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_call

but it turned out that with older evm versions, the field has to be "data"
ethereum/go-ethereum#28608 (comment)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but it's not our evm version
it's go ethereum
You check version or neon evm

You can check here only current behavior

integration/tests/basic/test_batch_operations.py Outdated Show resolved Hide resolved
self,
request: pytest.FixtureRequest,
common_contract,
json_rpc_client: JsonRPCSession,
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 don't use json_rpc_client here and common_contract

integration/tests/basic/test_batch_operations.py Outdated Show resolved Hide resolved
integration/tests/basic/test_batch_operations.py Outdated Show resolved Hide resolved
integration/tests/basic/test_batch_operations.py Outdated Show resolved Hide resolved
@IvanAdamovNeon IvanAdamovNeon force-pushed the NDEV-1523-batch-operations-tests branch from d089113 to f63acae Compare May 10, 2024 10:42
@IvanAdamovNeon IvanAdamovNeon force-pushed the NDEV-1523-batch-operations-tests branch 2 times, most recently from 8abef21 to 8417e07 Compare May 10, 2024 11:13
@IvanAdamovNeon IvanAdamovNeon force-pushed the NDEV-1523-batch-operations-tests branch from 8417e07 to 4d725a8 Compare May 10, 2024 11:19
@IvanAdamovNeon IvanAdamovNeon merged commit 0c0e47b into develop May 10, 2024
4 checks passed
@IvanAdamovNeon IvanAdamovNeon deleted the NDEV-1523-batch-operations-tests branch May 10, 2024 12:13
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