Skip to content

Commit 71a2c38

Browse files
author
Michael Müller
authored
Stabilize seal_call (#1041)
1 parent 406b4df commit 71a2c38

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

RELEASES.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ This is the 7th release candidate for ink! 3.0.
1616
- Annotating a wildcard selector in traits is not supported.
1717

1818
## Changed
19-
- Upgraded to the unstable `seal_call` API ‒ [#960](https://github.com/paritytech/ink/pull/960).
19+
- Upgraded to the `seal_call` v1 API ‒ [#960](https://github.com/paritytech/ink/pull/960).
2020
- This API now enables control over the behavior of cross-contract calls, e.g. to forward/clone input,
2121
enable tail calls and control reentrancy.
2222
The crate documentation contains more details on the [`CallFlags`](https://paritytech.github.io/ink/ink_env/struct.CallFlags.html).
2323
- **Note:** The default behavior of cross-contract calls now disallows reentering the calling contract.
24-
- **Note:** In order to support this you currently have to enable the `unstable-interface` of
25-
the `contracts` pallet, [like here](https://github.com/paritytech/substrate-contracts-node/blob/main/runtime/Cargo.toml#L104-L108).
2624
- ink! contract definitions via `#[ink::contract]`:
2725
- ink! smart contracts now generate two contract types. Given `MyContract`:
2826
- `MyContract` will still be the storage struct.

crates/env/src/engine/on_chain/ext.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,7 @@ mod sys {
312312
output_ptr: Ptr32Mut<[u8]>,
313313
output_len_ptr: Ptr32Mut<u32>,
314314
);
315-
}
316315

317-
#[link(wasm_import_module = "__unstable__")]
318-
extern "C" {
319316
pub fn seal_call(
320317
flags: u32,
321318
callee_ptr: Ptr32<[u8]>,
@@ -326,7 +323,10 @@ mod sys {
326323
output_ptr: Ptr32Mut<[u8]>,
327324
output_len_ptr: Ptr32Mut<u32>,
328325
) -> ReturnCode;
326+
}
329327

328+
#[link(wasm_import_module = "__unstable__")]
329+
extern "C" {
330330
pub fn seal_ecdsa_recover(
331331
// 65 bytes of ecdsa signature
332332
signature_ptr: Ptr32<[u8]>,

0 commit comments

Comments
 (0)