Skip to content

Commit 7785f6f

Browse files
authored
Update Wallet.svelte
1 parent dd6c519 commit 7785f6f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/lib/Wallet.svelte

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
} from 'flowbite-svelte';
1313
import { BellSolid, EyeSolid } from 'flowbite-svelte-icons';
1414
import { eventSourceListener } from '../service/blockchains/stellar';
15+
//import { getTransactions } from '../service/blockchains/stellar';
1516
import { horizonEventSource } from '../service/blockchains/stellar';
1617
import { paymentsdones } from '../service/blockchains/stellar';
1718
import { paymentRealized } from '../service/blockchains/stellar';
@@ -51,20 +52,25 @@
5152
getBalance(address).then((res) => {
5253
saldo = res;
5354
});
54-
55+
let listTransactions:object[]=[]
5556
$: if (address.length == 56) {
57+
5658
eventSourceListener(
5759
address,
5860
async (res: any) => {
5961
console.info('me llego un mensaje', res);
62+
listTransactions.push(res)
6063
saldo = await getBalance(address);
64+
console.log(listTransactions)
6165
},
6266
(msgError: any) => {
63-
console.error('me paso algo malisimo', msgError);
67+
//console.error('me paso algo malisimo', msgError);
6468
},
6569
);
70+
6671
}
6772
$: if (address.length !== 56) {
73+
listTransactions=[]
6874
horizonEventSource?.close();
6975
console.log(saldo);
7076
saldo = 0;

0 commit comments

Comments
 (0)