validateTransactionReceipts function

void validateTransactionReceipts(
  1. CallResult callResult
)

Implementation

void validateTransactionReceipts(CallResult callResult) {
  for (var receipt in callResult.receipts) {
    if (receipt is ReceiptPanic) {
      throw Exception('Encountered panic receipt in transaction');
    }
    if (receipt is ReceiptRevert) {
      throw Exception('Encountered revert receipt in transaction');
    }
  }
}