-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(xcvm): simplify apply_bindings function
Rather than dealing with pre-initialised buffer and having to track indexes when setting data in the output payload, change the apply_bindings function to append data into a vector which does index tracking by itself. This removes offset tracking from the function simplifying it. With that, change the function so it no longer takes output vector as argument but rather allocates vector internally. While changing the apply_bindings function in xc_core also change how it’s used in the interpreter contract refactoring the code slightly. Part of it is a consequence of changing the signature of the apply_binding function but partially it’s just refactoring splitting functions into smaller, more manageable chunks.
- Loading branch information
Showing
3 changed files
with
192 additions
and
125 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters