mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 19:21:13 +00:00
@@ -186,7 +186,7 @@ impl<T: Config> PrefabWasmModule<T> {
|
||||
code_cache::try_remove::<T>(origin, code_hash)
|
||||
}
|
||||
|
||||
/// Returns whether there is a deposit to be payed for this module.
|
||||
/// Returns whether there is a deposit to be paid for this module.
|
||||
///
|
||||
/// Returns `0` if the module is already in storage and hence no deposit will
|
||||
/// be charged when storing it.
|
||||
@@ -689,7 +689,7 @@ mod tests {
|
||||
executable.execute(ext.borrow_mut(), entry_point, input_data)
|
||||
}
|
||||
|
||||
/// Execute the suppplied code.
|
||||
/// Execute the supplied code.
|
||||
fn execute<E: BorrowMut<MockExt>>(wat: &str, input_data: Vec<u8>, ext: E) -> ExecResult {
|
||||
execute_internal(wat, input_data, ext, &ExportedFunction::Call, true, false)
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ pub enum TryInstantiate {
|
||||
Instantiate,
|
||||
/// Skip the instantiation during preparation.
|
||||
///
|
||||
/// This makes sense when the preparation takes place as part of an instantation. Then
|
||||
/// This makes sense when the preparation takes place as part of an instantiation. Then
|
||||
/// this instantiation would fail the whole transaction and an extra check is not
|
||||
/// necessary.
|
||||
Skip,
|
||||
@@ -376,7 +376,7 @@ fn get_memory_limits<T: Config>(
|
||||
},
|
||||
}
|
||||
} else {
|
||||
// If none memory imported then just crate an empty placeholder.
|
||||
// If none memory imported then just create an empty placeholder.
|
||||
// Any access to it will lead to out of bounds trap.
|
||||
Ok((0, 0))
|
||||
}
|
||||
@@ -412,7 +412,7 @@ where
|
||||
extended_const: false,
|
||||
component_model: false,
|
||||
// This is not our only defense: We check for float types later in the preparation
|
||||
// process. Additionally, all instructions explictily need to have weights assigned
|
||||
// process. Additionally, all instructions explicitly need to have weights assigned
|
||||
// or the deployment will fail. We have none assigned for float instructions.
|
||||
deterministic_only: matches!(determinism, Determinism::Deterministic),
|
||||
mutable_global: false,
|
||||
|
||||
@@ -1336,7 +1336,7 @@ pub mod env {
|
||||
///
|
||||
/// # Parameters
|
||||
///
|
||||
/// - `flags`: See `crate::wasm::runtime::CallFlags` for a documenation of the supported flags.
|
||||
/// - `flags`: See `crate::wasm::runtime::CallFlags` for a documentation of the supported flags.
|
||||
/// - `callee_ptr`: a pointer to the address of the callee contract. Should be decodable as an
|
||||
/// `T::AccountId`. Traps otherwise.
|
||||
/// - `gas`: how much gas to devote to the execution.
|
||||
@@ -2038,7 +2038,7 @@ pub mod env {
|
||||
/// # Note
|
||||
///
|
||||
/// The state rent functionality was removed. This is stub only exists for
|
||||
/// backwards compatiblity
|
||||
/// backwards compatibility
|
||||
#[prefixed_alias]
|
||||
#[deprecated]
|
||||
fn restore_to(
|
||||
@@ -2062,7 +2062,7 @@ pub mod env {
|
||||
/// # Note
|
||||
///
|
||||
/// The state rent functionality was removed. This is stub only exists for
|
||||
/// backwards compatiblity
|
||||
/// backwards compatibility
|
||||
#[version(1)]
|
||||
#[prefixed_alias]
|
||||
#[deprecated]
|
||||
@@ -2084,7 +2084,7 @@ pub mod env {
|
||||
/// # Note
|
||||
///
|
||||
/// The state rent functionality was removed. This is stub only exists for
|
||||
/// backwards compatiblity.
|
||||
/// backwards compatibility.
|
||||
#[prefixed_alias]
|
||||
#[deprecated]
|
||||
fn set_rent_allowance(
|
||||
@@ -2102,7 +2102,7 @@ pub mod env {
|
||||
/// # Note
|
||||
///
|
||||
/// The state rent functionality was removed. This is stub only exists for
|
||||
/// backwards compatiblity.
|
||||
/// backwards compatibility.
|
||||
#[version(1)]
|
||||
#[prefixed_alias]
|
||||
#[deprecated]
|
||||
@@ -2116,7 +2116,7 @@ pub mod env {
|
||||
/// # Note
|
||||
///
|
||||
/// The state rent functionality was removed. This is stub only exists for
|
||||
/// backwards compatiblity.
|
||||
/// backwards compatibility.
|
||||
#[prefixed_alias]
|
||||
#[deprecated]
|
||||
fn rent_allowance(ctx: _, memory: _, out_ptr: u32, out_len_ptr: u32) -> Result<(), TrapReason> {
|
||||
@@ -2409,7 +2409,7 @@ pub mod env {
|
||||
///
|
||||
/// # Return Value
|
||||
///
|
||||
/// Returns `ReturnCode::Success` when the dispatchable was succesfully executed and
|
||||
/// Returns `ReturnCode::Success` when the dispatchable was successfully executed and
|
||||
/// returned `Ok`. When the dispatchable was exeuted but returned an error
|
||||
/// `ReturnCode::CallRuntimeFailed` is returned. The full error is not
|
||||
/// provided because it is not guaranteed to be stable.
|
||||
@@ -2603,7 +2603,7 @@ pub mod env {
|
||||
|
||||
/// Returns a nonce that is unique per contract instantiation.
|
||||
///
|
||||
/// The nonce is incremented for each succesful contract instantiation. This is a
|
||||
/// The nonce is incremented for each successful contract instantiation. This is a
|
||||
/// sensible default salt for contract instantiations.
|
||||
#[unstable]
|
||||
fn instantiation_nonce(ctx: _, _memory: _) -> Result<u64, TrapReason> {
|
||||
|
||||
Reference in New Issue
Block a user