Skip to main content

parse_settlement_error

Function parse_settlement_error 

Source
pub fn parse_settlement_error(
    e: InstructionError,
) -> Result<SettlementError, InstructionError>
Expand description

Decodes the settlement error from an instruction that failed in the settlement program, handing back the original error if it isn’t a known settlement error code.