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

feat: LogCollector use alloy_primitives::Log #6752

Merged
merged 8 commits into from
Jan 11, 2024

Conversation

qiweiii
Copy link
Contributor

@qiweiii qiweiii commented Jan 10, 2024

Motivation

resolve: #6746

Solution

@qiweiii
Copy link
Contributor Author

qiweiii commented Jan 10, 2024

hi @mattsse, are my changes the expected solution?

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

yep, this is great!

only smol nits

crates/forge/tests/it/repros.rs Outdated Show resolved Hide resolved
crates/evm/evm/src/inspectors/logs.rs Outdated Show resolved Hide resolved
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

this lgtm

pending Default usage and sanity check @DaniPopes

crates/evm/evm/src/inspectors/logs.rs Outdated Show resolved Hide resolved
@mattsse mattsse marked this pull request as ready for review January 10, 2024 14:23
@DaniPopes
Copy link
Member

Needs rebase to alloy-primitives 0.6.0. Log is now LogData among other things.

@qiweiii
Copy link
Contributor Author

qiweiii commented Jan 11, 2024

Does this mean I need to update alloy_rpc_types::Log to use alloy_primitives::Log

@DaniPopes
Copy link
Member

Yes that would be ideal, since the only fields we're using are data and topics

@mattsse
Copy link
Member

mattsse commented Jan 11, 2024

that sounds reasonable!

@qiweiii qiweiii changed the title feat: LogCollector use alloy_rpc_types::Log feat: LogCollector use alloy_primitives::Log Jan 11, 2024
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm,
pending @DaniPopes

@mattsse mattsse merged commit 33744b3 into foundry-rs:master Jan 11, 2024
19 of 20 checks passed
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.

Port LogCollector logs to alloy_rpc_types::Log
3 participants