File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 12
12
} from ' flowbite-svelte' ;
13
13
import { BellSolid , EyeSolid } from ' flowbite-svelte-icons' ;
14
14
import { eventSourceListener } from ' ../service/blockchains/stellar' ;
15
+ // import { getTransactions } from '../service/blockchains/stellar';
15
16
import { horizonEventSource } from ' ../service/blockchains/stellar' ;
16
17
import { paymentsdones } from ' ../service/blockchains/stellar' ;
17
18
import { paymentRealized } from ' ../service/blockchains/stellar' ;
51
52
getBalance (address ).then ((res ) => {
52
53
saldo = res ;
53
54
});
54
-
55
+ let listTransactions : object [] = []
55
56
$ : if (address .length == 56 ) {
57
+
56
58
eventSourceListener (
57
59
address ,
58
60
async (res : any ) => {
59
61
console .info (' me llego un mensaje' , res );
62
+ listTransactions .push (res )
60
63
saldo = await getBalance (address );
64
+ console .log (listTransactions )
61
65
},
62
66
(msgError : any ) => {
63
- console .error (' me paso algo malisimo' , msgError );
67
+ // console.error('me paso algo malisimo', msgError);
64
68
},
65
69
);
70
+
66
71
}
67
72
$ : if (address .length !== 56 ) {
73
+ listTransactions = []
68
74
horizonEventSource ?.close ();
69
75
console .log (saldo );
70
76
saldo = 0 ;
You can’t perform that action at this time.
0 commit comments