Skip to content

Commit c42aa9f

Browse files
committed
fix(cw_monero): call store() directly after commiting tx to make sure that tx key is written to cache
1 parent b0edf1f commit c42aa9f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cw_monero/lib/api/transaction_history.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'dart:async';
12
import 'dart:ffi';
23
import 'dart:isolate';
34

@@ -286,6 +287,11 @@ Future<String?> commitTransaction({required Wallet2PendingTransaction tx, requir
286287
throw CreationTransactionException(message: error);
287288
}
288289
if (useUR) {
290+
unawaited(() async {
291+
storeSync(force: true);
292+
await Future.delayed(Duration(seconds: 5));
293+
storeSync(force: true);
294+
}());
289295
return Future.value(txCommit as String?);
290296
} else {
291297
return Future.value(null);

0 commit comments

Comments
 (0)