This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix missing returns in the entry point function
Problem: we replace returns with empty strings in the main function. The reason is that we change the signature of the main function, add return variables, so the returns are not valid. However, it might change semantics and it leads to non-compiling code for the new contract 'ctor-check.sol'. Another issue is that sometimes we don't finalize certain implicits on early returns Solution: transpile the main and constructor function as is, without any changes. Add wrappers that initialize and finalize implicits and perform the outermost returning. The semantics are unchanged and finalization is guaranteed. Also now we add only necessary implicits to the constructor and main functions.
- Loading branch information
1 parent
3dd2ade
commit 39707e5
Showing
36 changed files
with
1,685 additions
and
1,062 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
function funD() { } | ||
function fun_ENTRY_POINT() { funD() } | ||
function __main_meat() { funD() } | ||
} |
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.