Skip to content

Commit

Permalink
Update chain extension description
Browse files Browse the repository at this point in the history
  • Loading branch information
smiasojed committed May 14, 2024
1 parent 47f9d76 commit 76e50fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions substrate/frame/contracts/src/chain_extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ pub trait ChainExtension<C: Config> {
/// chain extensions. It is called whenever a contract calls the `seal_call_chain_extension`
/// imported wasm function.
///
/// Note that `seal_call_chain_extension` can be invoked within a read-only context,
/// where any state-changing calls are disallowed. This information can be obtained
/// using the call `env.ext().is_read_only()`.
/// It's crucial for the implementer to handle this scenario appropriately.
///
/// # Parameters
/// - `env`: Access to the remaining arguments and the execution environment.
///
Expand Down

0 comments on commit 76e50fc

Please sign in to comment.