balances
is pulling the balance for addresses before the execution of transactions in a block
#154
Labels
bug
Something isn't working
Version
cryo commit
041f38b
, latest as of writingPlatform
Max OSX
Description
Pulling
balances
data down will return the correct addresses at the correct blocks & transactions, however they are returning the balances before the transaction is executed and the balances are updated, not after.I pulled a random address while reviewing this issue for the following example:
The output from cryo, displayed in duckdb:
![Screenshot 2023-12-16 at 7 54 23 AM](https://private-user-images.githubusercontent.com/301326/290993241-5cce7f46-a5b2-4eb8-b423-e6612101c62d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MTc1MTAsIm5iZiI6MTcxOTkxNzIxMCwicGF0aCI6Ii8zMDEzMjYvMjkwOTkzMjQxLTVjY2U3ZjQ2LWE1YjItNGViOC1iNDIzLWU2NjEyMTAxYzYyZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwMlQxMDQ2NTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kNzQ2YTM4MWRjM2IwNTg5MTAyMzk5MzM4NDk2Y2NkZDI1OWMwOGE3NjM1MWM1YjY5ODJhMzlhNDVkZmE2ZWNmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.BdHFdm7h8sg3ELbEbrf9012N0tKnqvHLuvw3mvnOaPY)
The transactions in etherscan:
![Screenshot 2023-12-16 at 7 55 28 AM](https://private-user-images.githubusercontent.com/301326/290993267-0d222e23-7666-4688-9d05-f308139746b3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MTc1MTAsIm5iZiI6MTcxOTkxNzIxMCwicGF0aCI6Ii8zMDEzMjYvMjkwOTkzMjY3LTBkMjIyZTIzLTc2NjYtNDY4OC05ZDA1LWYzMDgxMzk3NDZiMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwMlQxMDQ2NTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zMzdiNzE1MzRjMDc5M2I4MzZlNGI0YTgxMjFmMGNlMThlYjFmZDlmN2NmZWNhODk0ZTBjYjBkNDQxYjAwYTBmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.I4jaSjm1HH1ov0qt9D6uTinkFsROSHe3dcMcnaCFqp4)
The assumed behavior (at least, my assumed behavior) is that this would return the balances of addresses after a block has been executed, not before.
The text was updated successfully, but these errors were encountered: