success property
bool
success
Implementation
bool get success {
if (_strResultXdr != null) {
XdrTransactionResult result =
XdrTransactionResult.fromBase64EncodedXdrString(_strResultXdr!);
if (result.result.discriminant == XdrTransactionResultCode.txSUCCESS) {
return true;
} else if (result.result.discriminant ==
XdrTransactionResultCode.txFEE_BUMP_INNER_SUCCESS &&
result.result.innerResultPair != null) {
XdrInnerTransactionResultPair innerResultPair =
result.result.innerResultPair;
if (innerResultPair.result.result.discriminant ==
XdrTransactionResultCode.txSUCCESS) {
return true;
}
}
}
return false;
}