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(trace/parity): add trace creation method #237

Merged
merged 4 commits into from
Nov 6, 2024

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented Nov 5, 2024

waiting for alloy-rs/alloy#1621

Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
Copy link
Contributor

@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.

smol nit

Comment on lines 526 to 528
/// Returns the creation method of the create callkind.
impl Into<CreationMethod> for CallKind {
fn into(self) -> CreationMethod {
Copy link
Contributor

Choose a reason for hiding this comment

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

let's flip this to a from impl

@@ -397,6 +397,7 @@ impl CallTraceNode {
value: self.trace.value,
gas: self.trace.gas_limit,
init: self.trace.data.clone(),
creation_method: self.kind().into(),
Copy link
Contributor

Choose a reason for hiding this comment

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

I see, this is only reachable for create

Signed-off-by: jsvisa <delweng@gmail.com>
Copy link
Contributor

@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 alloy bump today

@mattsse mattsse merged commit ebf965e into paradigmxyz:main Nov 6, 2024
2 of 11 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.

2 participants