fromFuels static method
Implementation
static TransactionReceipt fromFuels(fuels.TransactionReceipt receipt) {
if (receipt is fuels.UnknownReceipt) {
return UnknownReceipt.fromFuels(receipt);
}
if (receipt is fuels.UnparsedReceipt) {
return UnparsedReceipt.fromFuels(receipt);
}
if (receipt is fuels.ReceiptCall) {
return ReceiptCall.fromFuels(receipt);
}
if (receipt is fuels.ReceiptReturn) {
return ReceiptReturn.fromFuels(receipt);
}
if (receipt is fuels.ReceiptReturnData) {
return ReceiptReturnData.fromFuels(receipt);
}
if (receipt is fuels.ReceiptPanic) {
return ReceiptPanic.fromFuels(receipt);
}
if (receipt is fuels.ReceiptRevert) {
return ReceiptRevert.fromFuels(receipt);
}
if (receipt is fuels.ReceiptLog) {
return ReceiptLog.fromFuels(receipt);
}
if (receipt is fuels.ReceiptLogData) {
return ReceiptLogData.fromFuels(receipt);
}
if (receipt is fuels.ReceiptTransfer) {
return ReceiptTransfer.fromFuels(receipt);
}
if (receipt is fuels.ReceiptTransferOut) {
return ReceiptTransferOut.fromFuels(receipt);
}
if (receipt is fuels.ReceiptScriptResult) {
return ReceiptScriptResult.fromFuels(receipt);
}
if (receipt is fuels.ReceiptMessageOut) {
return ReceiptMessageOut.fromFuels(receipt);
}
if (receipt is fuels.ReceiptMint) {
return ReceiptMint.fromFuels(receipt);
}
if (receipt is fuels.ReceiptBurn) {
return ReceiptBurn.fromFuels(receipt);
}
throw Exception('Cannot parse transaction receipt');
}