Skip to content

Commit

Permalink
Stabilize seal_call
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi committed Nov 24, 2021
1 parent d2f19d9 commit 173b246
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ This is the 7th release candidate for ink! 3.0.
- Annotating a wildcard selector in traits is not supported.

## Changed
- Upgraded to the unstable `seal_call` API ‒ [#960](https://github.com/paritytech/ink/pull/960).
- Upgraded to the `seal_call` v1 API ‒ [#960](https://github.com/paritytech/ink/pull/960).
- This API now enables control over the behavior of cross-contract calls, e.g. to forward/clone input,
enable tail calls and control reentrancy.
The crate documentation contains more details on the [`CallFlags`](https://paritytech.github.io/ink/ink_env/struct.CallFlags.html).
- **Note:** The default behavior of cross-contract calls now disallows reentering the calling contract.
- **Note:** In order to support this you currently have to enable the `unstable-interface` of
the `contracts` pallet, [like here](https://github.com/paritytech/substrate-contracts-node/blob/main/runtime/Cargo.toml#L104-L108).
- ink! contract definitions via `#[ink::contract]`:
- ink! smart contracts now generate two contract types. Given `MyContract`:
- `MyContract` will still be the storage struct.
Expand Down
6 changes: 3 additions & 3 deletions crates/env/src/engine/on_chain/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,7 @@ mod sys {
output_ptr: Ptr32Mut<[u8]>,
output_len_ptr: Ptr32Mut<u32>,
);
}

#[link(wasm_import_module = "__unstable__")]
extern "C" {
pub fn seal_call(
flags: u32,
callee_ptr: Ptr32<[u8]>,
Expand All @@ -348,7 +345,10 @@ mod sys {
output_ptr: Ptr32Mut<[u8]>,
output_len_ptr: Ptr32Mut<u32>,
) -> ReturnCode;
}

#[link(wasm_import_module = "__unstable__")]
extern "C" {
pub fn seal_rent_params(
output_ptr: Ptr32Mut<[u8]>,
output_len_ptr: Ptr32Mut<u32>,
Expand Down

0 comments on commit 173b246

Please sign in to comment.