-
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.
* [env][lang] add support for new `is_contract` API * added `is_contract()` to ink_lang::EnvAccess to use from within contract with self.env() * added `is-contract` example * add support for `caller_is_origin()` API * updated is-contract example to use `caller_is_origin()` as well * Corrections in response to @HCastrano review * removed `examples/is-contract` * turned back whitespaces in `env_access.rs` not to mess up with the changed thing * added new functions to `experimental_offchain_engine` * fixed `wrong_self_convention` clippy warning for `is_` functions * supressed `wrong_self_convention` clippy warning for `is_` functions This reverts commit a40fab1. * Update crates/env/src/api.rs Co-authored-by: Michael Müller <mich@elmueller.net> * set `is_contract` and `caller_is_origin` as `unimplemented` in experimental_off_chain eingine * Apply suggestions from code review Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * message cant take ref as a param: revert suggested change Co-authored-by: Michael Müller <mich@elmueller.net> Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
- Loading branch information
1 parent
07a8ed9
commit ff5add1
Showing
7 changed files
with
180 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