mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 19:51:05 +00:00
chore: fix typos and sort trait impls (#11989)
This commit is contained in:
@@ -1209,7 +1209,7 @@ define_env!(Env, <E: Ext>,
|
||||
//
|
||||
// # Parameters
|
||||
//
|
||||
// - flags: See [`CallFlags`] for a documenation of the supported flags.
|
||||
// - flags: See [`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.
|
||||
@@ -1753,7 +1753,7 @@ define_env!(Env, <E: Ext>,
|
||||
// # Note
|
||||
//
|
||||
// The state rent functionality was removed. This is stub only exists for
|
||||
// backwards compatiblity
|
||||
// backwards compatibility
|
||||
[seal0] seal_restore_to(
|
||||
ctx,
|
||||
_dest_ptr: u32,
|
||||
@@ -1774,7 +1774,7 @@ define_env!(Env, <E: Ext>,
|
||||
// # Note
|
||||
//
|
||||
// The state rent functionality was removed. This is stub only exists for
|
||||
// backwards compatiblity
|
||||
// backwards compatibility
|
||||
[seal1] seal_restore_to(
|
||||
ctx,
|
||||
_dest_ptr: u32,
|
||||
@@ -1857,7 +1857,7 @@ define_env!(Env, <E: Ext>,
|
||||
// # Note
|
||||
//
|
||||
// The state rent functionality was removed. This is stub only exists for
|
||||
// backwards compatiblity.
|
||||
// backwards compatibility.
|
||||
[seal0] seal_set_rent_allowance(ctx, _value_ptr: u32, _value_len: u32) => {
|
||||
ctx.charge_gas(RuntimeCosts::DebugMessage)?;
|
||||
Ok(())
|
||||
@@ -1868,7 +1868,7 @@ define_env!(Env, <E: Ext>,
|
||||
// # Note
|
||||
//
|
||||
// The state rent functionality was removed. This is stub only exists for
|
||||
// backwards compatiblity.
|
||||
// backwards compatibility.
|
||||
[seal1] seal_set_rent_allowance(ctx, _value_ptr: u32) => {
|
||||
ctx.charge_gas(RuntimeCosts::DebugMessage)?;
|
||||
Ok(())
|
||||
@@ -1879,7 +1879,7 @@ define_env!(Env, <E: Ext>,
|
||||
// # Note
|
||||
//
|
||||
// The state rent functionality was removed. This is stub only exists for
|
||||
// backwards compatiblity.
|
||||
// backwards compatibility.
|
||||
[seal0] seal_rent_allowance(ctx, out_ptr: u32, out_len_ptr: u32) => {
|
||||
ctx.charge_gas(RuntimeCosts::Balance)?;
|
||||
let rent_allowance = <BalanceOf<E::T>>::max_value().encode();
|
||||
@@ -2085,15 +2085,15 @@ define_env!(Env, <E: Ext>,
|
||||
//
|
||||
// # Return Value
|
||||
//
|
||||
// Returns `ReturnCode::Success` when the dispatchable was succesfully executed and
|
||||
// returned `Ok`. When the dispatchable was exeuted but returned an error
|
||||
// Returns `ReturnCode::Success` when the dispatchable was successfully executed and
|
||||
// returned `Ok`. When the dispatchable was executed but returned an error
|
||||
// `ReturnCode::CallRuntimeReturnedError` is returned. The full error is not
|
||||
// provided because it is not guaranteed to be stable.
|
||||
//
|
||||
// # Comparison with `ChainExtension`
|
||||
//
|
||||
// Just as a chain extension this API allows the runtime to extend the functionality
|
||||
// of contracts. While making use of this function is generelly easier it cannot be
|
||||
// of contracts. While making use of this function is generally easier it cannot be
|
||||
// used in call cases. Consider writing a chain extension if you need to do perform
|
||||
// one of the following tasks:
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user