pub fn with_cost(self, cost: Gas) -> Self {
        match self {
            ExecutionResult::Failure {
                error,
                transfers,
                execution_journal,
                ..
            } => ExecutionResult::Failure {
                error,
                transfers,
                cost,
                execution_journal,
            },
            ExecutionResult::Success {
                transfers,
                execution_journal,
                ..
            } => ExecutionResult::Success {
                transfers,
                cost,
                execution_journal,
            },
        }
    }
/// Returns a new execution result with updated gas cost.
///
/// This method preserves the [`ExecutionResult`] variant and updates the cost field
/// only.
Returns a new execution result with updated gas cost.
This method preserves the [`ExecutionResult`] variant and updates the cost field
only.
Returns a new execution result with updated gas cost . This method preserves the [ ` ExecutionResult ` ] variant and updates the cost field only .
pub fn with_cost(self, cost: Gas) -> Self {
        match self {
            ExecutionResult::Failure {
                error,
                transfers,
                execution_journal,
                ..
            } => ExecutionResult::Failure {
                error,
                transfers,
                cost,
                execution_journal,
            },
            ExecutionResult::Success {
                transfers,
                execution_journal,
                ..
            } => ExecutionResult::Success {
                transfers,
                cost,
                execution_journal,
            },
        }
    }
pub fn with_cost ( self , cost : Gas ) -> Self { match self { ExecutionResult :: Failure { error , transfers , execution_journal , .. } => ExecutionResult :: Failure { error , transfers , cost , execution_journal , } , ExecutionResult :: Success { transfers , execution_journal , .. } => ExecutionResult :: Success { transfers , cost , execution_journal , } , } }
Returns a new execution result with updated gas cost.
Returns a new execution result with updated gas cost .
self
cost
Gas
self
cost
Gas