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

Receive call tree after execution #275

Merged
merged 8 commits into from
Sep 28, 2023
Merged

Receive call tree after execution #275

merged 8 commits into from
Sep 28, 2023

Conversation

ureeves
Copy link
Member

@ureeves ureeves commented Sep 26, 2023

Adds the call tree to the receipt of a call, allowing the host to understand which contract spent how much gas during the total execution. This tree can be iterated through, yielding CallTreeElem which contain various information about the call that was made. This also means code can be written downstream that branches on what each contract spent.

Resolves: #206

Copy link
Member

@moCello moCello left a comment

Choose a reason for hiding this comment

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

LGTM, just a naming nit

piecrust/src/call_tree.rs Outdated Show resolved Hide resolved
piecrust/src/call_tree.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@fed-franz fed-franz left a comment

Choose a reason for hiding this comment

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

LGTM
Just a couple of typos

piecrust/src/call_tree.rs Outdated Show resolved Hide resolved
piecrust/src/call_tree.rs Outdated Show resolved Hide resolved
@ureeves ureeves merged commit 0ec30ff into main Sep 28, 2023
4 checks passed
@ureeves ureeves deleted the query-call-tree-206 branch September 28, 2023 11:52
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.

Allow for querying call tree
4 participants