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

[1.0] add get transaction & get transaction receipt from rpc test #231

Merged
merged 8 commits into from
Jun 6, 2024

Conversation

taokayan
Copy link
Contributor

@taokayan taokayan commented Jun 5, 2024

Resolves #229

@taokayan taokayan requested a review from elmato June 5, 2024 03:20
bal2 = w3.eth.get_balance(Web3.to_checksum_address("0x9E126C57330FA71556628e0aabd6B6B6783d99fA"))

# balance different = 1.0 EOS (val) + 900(Gwei) (21000(base gas) + 36782 (gas for non-exist account) )
assert(bal1 == bal2 + 1000000000000000000 + 900000000000 * (21000 + 36782))

Utils.Print("try to get transaction %s from evm-rpc" % (Web3.to_hex(signed_trx.hash)))
evm_tx = w3.eth.get_transaction(signed_trx.hash)
Copy link
Contributor

Choose a reason for hiding this comment

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

what happens here if transaction does not exists?
Maybe we can assert that : signed_trx.hash == evm_tx hash

We should also call eth_getTransactionReceipt and do something similar

Copy link
Contributor

Choose a reason for hiding this comment

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

Also the PR should start with [1.0] ... and target release/1.0

@taokayan taokayan requested a review from elmato June 6, 2024 06:24
@taokayan taokayan changed the base branch from main to release/1.0 June 6, 2024 06:47
@taokayan taokayan changed the title add get transaction via rpc [1.0] add get transaction & get transaction receipt from rpc test Jun 6, 2024
@elmato elmato merged commit 9e0366b into release/1.0 Jun 6, 2024
5 of 6 checks passed
@elmato elmato deleted the kayan_rpc_get_tx branch June 6, 2024 17:53
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.

Test eth_getTransactionByHash and eth_getTransactionReceipt in integration tests
2 participants