-
Notifications
You must be signed in to change notification settings - Fork 20.3k
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
eth/tracers: fill the creationMethod in flatCall #30539
Conversation
Can you please expand on this? Is it not part of the parity tracing response? shouldn't we in that case fill the value rather than remove it? |
I have consulted @ziogaschr who wrote the tracer. I think removing
|
I am sorry for missing this detail, while converting this tracer from the old JS tracers to the newer Go native ones. |
@s1na sorry for the inconvenience, I think I'll buy it. |
Filled it with vm.opcode, kindly ask @s1na @ziogaschr to take a look. |
BTW, as we use |
Thanks @jsvisa. That's indeed a nice idea. |
please fix the lint issue |
Signed-off-by: jsvisa <delweng@gmail.com>
This reverts commit 2792a54. Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
d5db469
to
ad338a8
Compare
@ziogaschr sorry for the delay response, I think this field has not been used before, so rename to |
@jsvisa if we want to be compatible with the old OpenEthereum label, then we have to use |
I think it makes more sense to use the label that was used before, and not create a new tracing format. |
This reverts commit abf084c. Signed-off-by: jsvisa <delweng@gmail.com>
@ziogaschr thanks for the advice, seems Parity(legacy OpenEthereum) did include the public class Action {
private final String creationMethod;
private final String callType;
private final String from;
private final String gas;
private final String input;
private final String to;
private final String init;
private final String value;
private final String address;
private final String balance;
private final String refundAddress;
private final String author;
private final String rewardType; So I think the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks all!
CI was red because a new testcase that was on master (but not pulled in to this PR) was failing. It is so interesting but also in this case useful. Anyway merged in master changes and fixed that test case. Should be good to go now. |
`flatCallTracer` will now specify the type of a create in the action via the `creationMethod` field. --------- Signed-off-by: jsvisa <delweng@gmail.com> Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
`flatCallTracer` will now specify the type of a create in the action via the `creationMethod` field. --------- Signed-off-by: jsvisa <delweng@gmail.com> Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
rename creationMethod to createType, and fill it with the correct value.