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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMjM2OTgsIm5iZiI6MTczOTAyMzM5OCwicGF0aCI6Ii8zMDEzMjYvMjkwOTkzMjQxLTVjY2U3ZjQ2LWE1YjItNGViOC1iNDIzLWU2NjEyMTAxYzYyZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQxNDAzMThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00ZmYxMWZjYTFjMjNiNzk2MTIxNGMxY2ZjMzQ2ZDlhOWFhMGM5MjVhMDI3ODRhM2FmOTA5OWEzMmIyY2UwYjA3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.3MVVemjL9nog7EygLVi-9N1jW5Tyrb9Pv7FTMjPLSMU)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMjM2OTgsIm5iZiI6MTczOTAyMzM5OCwicGF0aCI6Ii8zMDEzMjYvMjkwOTkzMjY3LTBkMjIyZTIzLTc2NjYtNDY4OC05ZDA1LWYzMDgxMzk3NDZiMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQxNDAzMThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iZmI5MmY1Mzc2NGFkZDBhNDcyZWFiNGE0NmIyMDQwYjZiNDJmZmM5NmEyMGNhOWNkYzI0OTFhYjNhYjJkMDlhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.xKnecPdhHLnu9FdBOwCGrcJomuKY8SlJRHeSWtZu68Q)
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: