@@ -9,10 +9,21 @@ void main() {
9
9
group ("Balances Tests" , () {
10
10
sharedSetup ();
11
11
late final String recipientAddress;
12
+
13
+ setUpAll (() async {
14
+ final mnemonic = bip39.generateMnemonic ();
15
+ final recipientClient = Client (url, mnemonic, type);
16
+ await recipientClient.connect ();
17
+
18
+ recipientAddress = recipientClient.address;
19
+ Client alice = Client (url, "//Alice" , type);
20
+ await alice.connect ();
21
+
22
+ await alice.balances.transfer (address: client.address, amount: myBalance);
23
+ });
12
24
13
25
test ('Test Get Balance' , () async {
14
- AccountInfo ? accountInfo =
15
- await client.balances.get (address: myAddress);
26
+ AccountInfo ? accountInfo = await client.balances.get (address: myAddress);
16
27
expect (accountInfo, isNotNull);
17
28
});
18
29
@@ -26,18 +37,6 @@ void main() {
26
37
}
27
38
});
28
39
29
- setUpAll (() async {
30
- final mnemonic = bip39.generateMnemonic ();
31
- final recipientClient = Client (url, mnemonic, type);
32
- await recipientClient.connect ();
33
-
34
- recipientAddress = recipientClient.address;
35
- Client alice = Client (url, "//Alice" , type);
36
- await alice.connect ();
37
-
38
- await alice.balances.transfer (address: client.address, amount: myBalance);
39
- });
40
-
41
40
test ('Test Transfer TFTs with invalid amount' , () async {
42
41
try {
43
42
await client.balances
0 commit comments