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

logs in CacheDB or InMemoryDB #1790

Open
Nov1kov opened this issue Sep 19, 2024 · 2 comments
Open

logs in CacheDB or InMemoryDB #1790

Nov1kov opened this issue Sep 19, 2024 · 2 comments

Comments

@Nov1kov
Copy link

Nov1kov commented Sep 19, 2024

Hello engineers!
Could someone please clarify is the logs field in CacheDB is not used at all?

pub logs: Vec<Log>,

I was expecting that after simulating transactions with Evm and CacheDB, I would be able to read all the events that occurred.

I found a way to read logs after transact_commit and transact through the ExecutionResult field and collect them manually, but the logs field in CacheDB confused me.

@rakita
Copy link
Member

rakita commented Sep 23, 2024

Idea is to have a place to save it after you execute transaction.

All output of transaction execution (Including log) is returned from transact

@Nov1kov
Copy link
Author

Nov1kov commented Sep 25, 2024

So, developers can save logs to this field by themselves, not automatically?

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

No branches or pull requests

2 participants