pub fn new_payment_code_error(
        error: error::Error,
        max_payment_cost: Motes,
        account_main_purse_balance: Motes,
        gas_cost: Gas,
        account_main_purse_balance_key: Key,
        proposer_main_purse_balance_key: Key,
    ) -> Result<ExecutionResult, error::Error> {
        let execution_journal = make_payment_error_effects(
            max_payment_cost,
            account_main_purse_balance,
            account_main_purse_balance_key,
            proposer_main_purse_balance_key,
        )?;
        let transfers = Vec::default();
        Ok(ExecutionResult::Failure {
            error,
            execution_journal,
            transfers,
            cost: gas_cost,
        })
    }
/// Creates a new payment code error.
///
/// The method below creates an [`ExecutionResult`] with precomputed effects of a
/// "finalize_payment".
///
/// The effects that are produced as part of this process would subract `max_payment_cost` from
/// account's main purse, and add `max_payment_cost` to proposer account's balance.
Creates a new payment code error.
The method below creates an [`ExecutionResult`] with precomputed effects of a
"finalize_payment".

The effects that are produced as part of this process would subract `max_payment_cost` from
account's main purse, and add `max_payment_cost` to proposer account's balance.
Creates a new payment code error . The method below creates an [ ` ExecutionResult ` ] with precomputed effects of a " finalize_payment " . The effects that are produced as part of this process would subract ` max_payment_cost ` from account ' s main purse and add ` max_payment_cost ` to proposer account ' s balance .
pub fn new_payment_code_error(
        error: error::Error,
        max_payment_cost: Motes,
        account_main_purse_balance: Motes,
        gas_cost: Gas,
        account_main_purse_balance_key: Key,
        proposer_main_purse_balance_key: Key,
    ) -> Result<ExecutionResult, error::Error> {
        let execution_journal = make_payment_error_effects(
            max_payment_cost,
            account_main_purse_balance,
            account_main_purse_balance_key,
            proposer_main_purse_balance_key,
        )?;
        let transfers = Vec::default();
        Ok(ExecutionResult::Failure {
            error,
            execution_journal,
            transfers,
            cost: gas_cost,
        })
    }
pub fn new_payment_code_error ( error : error :: Error , max_payment_cost : Motes , account_main_purse_balance : Motes , gas_cost : Gas , account_main_purse_balance_key : Key , proposer_main_purse_balance_key : Key , ) -> Result < ExecutionResult , error :: Error > { let execution_journal = make_payment_error_effects ( max_payment_cost , account_main_purse_balance , account_main_purse_balance_key , proposer_main_purse_balance_key , ) ? ; let transfers = Vec :: default ( ) ; Ok ( ExecutionResult :: Failure { error , execution_journal , transfers , cost : gas_cost , } ) }
Creates a new payment code error.
Creates a new payment code error .
error
error::Error
max_payment_cost
Motes
account_main_purse_balance
Motes
gas_cost
Gas
account_main_purse_balance_key
Key
proposer_main_purse_balance_key
Key
error
error::Error
max_payment_cost
Motes
account_main_purse_balance
Motes
gas_cost
Gas
account_main_purse_balance_key
Key
proposer_main_purse_balance_key
Key