pub trait TxGas<Env>where
Env: TxEnv,{
// Required methods
fn gas_annotation(&self, env: &Env) -> ManagedBuffer<<Env as TxEnv>::Api>;
fn gas_value(&self, env: &Env) -> u64;
fn explicit_or_gas_left(&self, env: &Env) -> u64;
}
Expand description
All typed that populate the gas field of a transaction need to implement this trait.