All files / src exception.ts

28.57% Statements 2/7
60% Branches 6/10
50% Functions 1/2
28.57% Lines 2/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 1220x   2x                  
import {API, APIError} from '@wharfkit/session'
 
export function getException(response): API.v1.SendTransactionResponseException | APIError | null {
    Iif (response.error) {
        return response.error
    }
    Iif (response.processed.except) {
        return response.processed.except
    }
    return null
}