-
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.
* implement const_fn Key::new constructor * add ContractRootKey trait to ink_lang crate * use qualified path * re-export ContractRootKey trait * automatically implement ContractRootKey for ink! contracts * implement #[derive(SpreadAllocate)] macro & tests * re-export #[derive(SpreadAllocate)] macro from ink_storage::traits * automatically implement SpreadAllocate for the ink! storage struct * extend execute_constructor to work with fallible ink! constructors Note that this commit does not yet allow to write fallible ink! constructors. * add initialize_contract utility method * re-export initialize_contract utility method * adjust ink! codegen for recent changes with execute_constructor * fix clippy warning * fix hunspell dictionary * add missing docs to codegen types * fix UI test * remove automatic SpreadAllocate implementation This is due to the fact that trivial_bounds feature is not yet stable. Otherwise this automatically generated implementation would be totally fine. We can re-add this feature once Rust adds trivial trait bounds. * Satisfy OCD in test * Remove mention of `enum`s from `derive_struct()` * Remove outdated comment about Clippy lint * RustFmt Co-authored-by: Hernando Castano <hernando@hcastano.com>
- Loading branch information
Showing
13 changed files
with
426 additions
and
17 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 |
---|---|---|
|
@@ -103,3 +103,4 @@ wildcard/S | |
natively | ||
payability | ||
unpayable | ||
initializer |
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.