-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: return Enums containing heap types at depth 1 (#1106)
This PR enables returning heap types surrounded in an `Enum` type. It notably enables returning a `Result<Vec>` from a contract call. Closes #940. Main disavantages from this approach: - We are injecting more custom bytecode - Enum can contain only one variant that uses a heap type inside. It could be extended to having an arbitrary number of them, but they would all have to have the same encoding width. This is a personal design choice. Co-authored-by: segfault-magnet <[email protected]>
- Loading branch information
Showing
11 changed files
with
656 additions
and
186 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.