Validate that eth_call
works for reading dynamic data after it has been updated
#4298
Labels
eth_call
works for reading dynamic data after it has been updated
#4298
Problem
We need to validate that
eth_call
can successfully read dynamically changed data (e.g. account balance). Let's say we have an account with zerohbar
andtoken
balance. AfterHAPI/precompile
hbar
/token
transfer to this account is performed and the corresponding .rcd file ingested on mirror-node side, the balance would be updated in the PostgreSQL DB. Validate that performingeth_call
read on the updated balances returns correct value.Solution
Case 1
Create a new account in the PostgreSQL DB on mirror-node side and assert that they have 0 hbars.
Perform a transfer of hbars to this account.
Validate that
eth_call
retrieves the correct updated account balance.Case 2
Create a new account in the PostgreSQL DB on mirror-node side and assert that they have 0 amount for a given fungible token.
Perform a transfer of tokens to this account.
Validate that
eth_call
retrieves the correct updated account's token balance.Alternatives
No response
The text was updated successfully, but these errors were encountered: