mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 01:07:57 +00:00
contracts: Allow contracts to dispatch calls into the runtime (#9276)
* contracts: Allow contracts to dispatch calls into the runtime * Fix RPC tests * Fix typo * Replace () by AllowAllFilter and DenyAllFilter * Add rust doc * Fixup for `()` removal * Fix lowest gas calculation * Rename AllowAllFilter and DenyAllFilter * Updated changelog
This commit is contained in:
committed by
GitHub
parent
2f31602896
commit
e01ac8cea0
@@ -37,6 +37,15 @@ use serde::{Serialize, Deserialize};
|
||||
pub struct ContractResult<T> {
|
||||
/// How much gas was consumed during execution.
|
||||
pub gas_consumed: u64,
|
||||
/// How much gas is required as gas limit in order to execute this call.
|
||||
///
|
||||
/// This value should be used to determine the gas limit for on-chain execution.
|
||||
///
|
||||
/// # Note
|
||||
///
|
||||
/// This can only different from [`Self::gas_consumed`] when weight pre charging
|
||||
/// is used. Currently, only `seal_call_runtime` makes use of pre charging.
|
||||
pub gas_required: u64,
|
||||
/// An optional debug message. This message is only filled when explicitly requested
|
||||
/// by the code that calls into the contract. Otherwise it is empty.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user