Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

facelift for traces, added errors #2042

Merged
merged 5 commits into from
Sep 5, 2016
Merged

facelift for traces, added errors #2042

merged 5 commits into from
Sep 5, 2016

Conversation

debris
Copy link
Collaborator

@debris debris commented Sep 2, 2016

@debris debris added the A0-pleasereview 🤓 Pull request needs code review. label Sep 2, 2016
};
let serialized = serde_json::to_string(&t).unwrap();
assert_eq!(serialized, r#"{"action":{"call":{"from":"0x0000000000000000000000000000000000000004","to":"0x0000000000000000000000000000000000000005","value":"0x6","gas":"0x7","input":"0x1234","callType":"call"}},"result":{"call":{"gasUsed":"0x8","output":"0x5678"}},"traceAddress":["0xa"],"subtraces":"0x1","transactionPosition":"0xb","transactionHash":"0x000000000000000000000000000000000000000000000000000000000000000c","blockNumber":"0xd","blockHash":"0x000000000000000000000000000000000000000000000000000000000000000e"}"#);
assert_eq!(serialized, r#"{"type":"call","action":{"from":"0x0000000000000000000000000000000000000004","to":"0x0000000000000000000000000000000000000005","value":"0x6","gas":"0x7","input":"0x1234","callType":"call"},"result":{"gasUsed":"0x8","output":"0x5678"},"traceAddress":["0xa"],"subtraces":"0x1","transactionPosition":"0xb","transactionHash":"0x000000000000000000000000000000000000000000000000000000000000000c","blockNumber":"0xd","blockHash":"0x000000000000000000000000000000000000000000000000000000000000000e"}"#);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Additional tests would be nice (especialy for errors)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sure 👍

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 85.424% when pulling 0ea15ec on trace_error_facelift into e0feaa9 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 84.429% when pulling 8fad4aa on trace_error_facelift into 59f18ab on master.

@keorn keorn added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Sep 5, 2016
@arkpar
Copy link
Collaborator

arkpar commented Sep 5, 2016

@debris could you please also updated the documentation?

@arkpar arkpar closed this Sep 5, 2016
@arkpar arkpar reopened this Sep 5, 2016
@arkpar arkpar merged commit da2c2e5 into master Sep 5, 2016
@debris debris deleted the trace_error_facelift branch September 5, 2016 11:12
@debris
Copy link
Collaborator Author

debris commented Sep 5, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants