From a8dbf79eaad1cf1238fb4b547291eb4c8a3ca716 Mon Sep 17 00:00:00 2001
From: poka <poka@p2p.legal>
Date: Mon, 29 Aug 2022 20:51:45 +0200
Subject: [PATCH] improve test migrate Cesium wallet identity: check if balance
 is well transfered

---
 integration_test/migrate_cesium_identity.dart | 3 +--
 lib/screens/myWallets/wallet_options.dart     | 2 +-
 lib/screens/myWallets/wallets_home.dart       | 1 +
 lib/screens/transaction_in_progress.dart      | 4 ++++
 4 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/integration_test/migrate_cesium_identity.dart b/integration_test/migrate_cesium_identity.dart
index 79cb510d..e57720f3 100644
--- a/integration_test/migrate_cesium_identity.dart
+++ b/integration_test/migrate_cesium_identity.dart
@@ -51,8 +51,7 @@ void main() async {
     await waitFor('3', exactMatch: true);
     await waitFor('Membre validé !');
 
-    // TODO: fix batch for transfertAll
-    // await waitFor('100.0 $currencyName');
+    await waitFor('99.98 $currencyName');
   }, timeout: testTimeout());
 }
 
diff --git a/lib/screens/myWallets/wallet_options.dart b/lib/screens/myWallets/wallet_options.dart
index 5d6c5eb5..f213449d 100644
--- a/lib/screens/myWallets/wallet_options.dart
+++ b/lib/screens/myWallets/wallet_options.dart
@@ -40,7 +40,7 @@ class WalletOptions extends StatelessWidget {
 
     // SubstrateSdk sub = Provider.of<SubstrateSdk>(context, listen: false);
     // sub.spawnBlock();
-    // sub.spawnBlock(0, 25);
+    // sub.spawnBlock(0, 20);
 
     log.d(walletOptions.address.text);
 
diff --git a/lib/screens/myWallets/wallets_home.dart b/lib/screens/myWallets/wallets_home.dart
index cdf307ec..7e452bf4 100644
--- a/lib/screens/myWallets/wallets_home.dart
+++ b/lib/screens/myWallets/wallets_home.dart
@@ -36,6 +36,7 @@ class WalletsHome extends StatelessWidget {
     myWalletProvider.listWallets =
         myWalletProvider.readAllWallets(currentChestNumber);
 
+
     return WillPopScope(
       onWillPop: () {
         // myWalletProvider.pinCode = myWalletProvider.mnemonic = '';
diff --git a/lib/screens/transaction_in_progress.dart b/lib/screens/transaction_in_progress.dart
index b00c8056..febc0ede 100644
--- a/lib/screens/transaction_in_progress.dart
+++ b/lib/screens/transaction_in_progress.dart
@@ -1,3 +1,5 @@
+import 'dart:io';
+
 import 'package:easy_localization/easy_localization.dart';
 import 'package:flutter/services.dart';
 import 'package:gecko/globals.dart';
@@ -34,6 +36,8 @@ class TransactionInProgress extends StatelessWidget {
     // Map jsonResult;
     final result = sub.transactionStatus;
 
+    // sub.spawnBlock();
+
     log.d(walletViewProvider.address!);
 
     final from = fromAddress ?? myWalletProvider.getDefaultWallet().name!;
-- 
GitLab