validateTransactionReceipts function
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');
}
}
}