Skip to content

Implement the InvokeHostFunctionOp part of CAP-52 - #3450

Merged
latobarita merged 16 commits into
stellar:masterfrom
jonjove:cap-52
Jun 17, 2022
Merged

latobarita merged 16 commits into
stellar:masterfrom
jonjove:cap-52

Conversation

@jonjove

@jonjove jonjove commented Jun 14, 2022

Copy link
Copy Markdown
Contributor

Description

Implements the InvokeHostFunctionOp part of CAP-52, but does not include the host functions.

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v8.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

@jonjove
jonjove requested a review from graydon June 14, 2022 22:48

@graydon graydon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks generally good! A few minor touchups.

Comment thread src/rust/src/contract.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This comment is inaccurate, the return value of the host function call is thrown away. Instead the ReadWrite set is serialized and returned.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch, fixed.

Comment thread src/transactions/OperationFrame.cpp Resolved
@graydon

graydon commented Jun 16, 2022

Copy link
Copy Markdown
Contributor

LGTM -- I leave the landing sequence to you, I think you might need to merge the other 2 first and then bump the Cargo.toml here to point to the post-merge revision ID of the env crate.

@sisuresh

Copy link
Copy Markdown
Contributor

r+ a68b53e

@sisuresh

Copy link
Copy Markdown
Contributor

r+ b1d22f7

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.

6 participants