-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return
LangError
s from constructors (#1504)
* Return `ConstructorResult` in `deploy()` * Wrap return type with `Result` in metadata * Check that constructor's return Results in tests * Add test showing that `Result`s are decoded correctly * Correctly generate metadata for constructors * Fix some nitpicks from Andrew's PR * Wrap dispatch return types with `Ok` These can't return dispatch errors atm. I may want to clean up how this is done later. * Manually wrap metadata return with `ConstructorResult` * Fix existing constructor integration tests * Remove constructor related test from `integration-flipper` * Fix compile tests * Add `ident` to dictionary * Simplify code * Driveby: Also simplify call dispatch * Small fixes to type paths * Check that actual instantiate call fails * Add some tests using the `CreateBuilder` * Clean up the `create_builder` tests * Remove unused method * Format code for generating constructor return type * Add `constructors-return-value` to CI * Move shared imports out of messages * Appease Clippy * Appease Clippy * Try flipping order of tests * Change message name Maybe it's a naming clash? * Revert last two changes * Try moving message related test to different module * Revert "Try moving message related test to different module" This reverts commit cab6c98. * Try different type for account ID Co-authored-by: Alexander Theißen <alex.theissen@me.com>
- Loading branch information
Showing
12 changed files
with
289 additions
and
107 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ evaluable | |
fuzzer | ||
getter | ||
growable | ||
ident | ||
interoperate | ||
invariants | ||
kB | ||
|
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
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
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.