mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
CW-834 Empty error when spending in wownero (#1870)
* CW-834 Empty error when spending in wownero * monero -> wownero
This commit is contained in:
@@ -181,13 +181,23 @@ void commitTransaction({required wownero.PendingTransaction transactionPointer})
|
||||
|
||||
final txCommit = wownero.PendingTransaction_commit(transactionPointer, filename: '', overwrite: false);
|
||||
|
||||
final String? error = (() {
|
||||
String? error = (() {
|
||||
final status = wownero.PendingTransaction_status(transactionPointer.cast());
|
||||
if (status == 0) {
|
||||
return null;
|
||||
}
|
||||
return wownero.Wallet_errorString(wptr!);
|
||||
return wownero.PendingTransaction_errorString(transactionPointer.cast());
|
||||
})();
|
||||
if (error == null) {
|
||||
error = (() {
|
||||
final status = wownero.Wallet_status(wptr!);
|
||||
if (status == 0) {
|
||||
return null;
|
||||
}
|
||||
return wownero.Wallet_errorString(wptr!);
|
||||
})();
|
||||
|
||||
}
|
||||
|
||||
if (error != null) {
|
||||
throw CreationTransactionException(message: error);
|
||||
|
||||
Reference in New Issue
Block a user