Skip to content

Commit

Permalink
Stabilize seal_call (use-ink#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi authored and xgreenx committed Feb 8, 2022
1 parent 80490c7 commit 0ee7c1e
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 @@ -16,13 +16,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 @@ -312,10 +312,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 @@ -326,7 +323,10 @@ mod sys {
output_ptr: Ptr32Mut<[u8]>,
output_len_ptr: Ptr32Mut<u32>,
) -> ReturnCode;
}

#[link(wasm_import_module = "__unstable__")]
extern "C" {
pub fn seal_ecdsa_recover(
// 65 bytes of ecdsa signature
signature_ptr: Ptr32<[u8]>,
Expand Down

0 comments on commit 0ee7c1e

Please sign in to comment.