-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic support for
dyn Trait
to allow cross-contract calls only with…
… trait (#1673) * Added `contract_ref!` macro rule that allows to create a wrapper around the trait defined via `#[ink::trait_definition]`. Added `From<AccountId>` for the contract builder and forwarder to simplify the usage. Added `AsRev<AccountId>` and `AsMut<AccountId>` for builder, forwarder, and contract_ref to provide the way modify the wrapper. * Added comments for the method in the example of the `contract_ref!` * Make clippy happy * Make CI happy * Changed the default behaviour to use alias generated by the `ink::contract`. Added more examples into documentation * Apply suggestions from code review Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * Apply comments from the PR * Missed the comment * Remove error from the example * Apply suggestions from code review Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * Fixed comments from PR * Update comments around `AccountIdGuard` * Apply suggestions from code review Co-authored-by: Michael Müller <mich@elmueller.net> * Mentioned the PR in the `Unreleased` section --------- Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> Co-authored-by: Hernando Castano <hernando@hcastano.com> Co-authored-by: Michael Müller <mich@elmueller.net>
- Loading branch information
1 parent
fd0a45d
commit f5f3ebe
Showing
17 changed files
with
636 additions
and
0 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
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.