update test
This commit is contained in:
parent
1f11062a80
commit
9ed6250c21
|
@ -95,11 +95,11 @@ async function run() {
|
||||||
eventSyncer.init(() => {
|
eventSyncer.init(() => {
|
||||||
|
|
||||||
// TODO: would be nice if trackEvent was smart enough to understand the type of returnValues and do the needed conversions
|
// TODO: would be nice if trackEvent was smart enough to understand the type of returnValues and do the needed conversions
|
||||||
// eventSyncer.trackEvent(RatingContract, 'Rating', ((x) => true)).pipe(map(x => parseInt(x.rating)), myscan, mymap).subscribe((v) => {
|
eventSyncer.trackEvent(RatingContract, 'Rating', ((x) => true)).pipe(map(x => parseInt(x.rating)), myscan, mymap).subscribe((v) => {
|
||||||
// // eventSyncer.trackEvent(RatingContract, 'Rating', ((x) => true)).pipe(map(x => x.rating)).subscribe((v) => {
|
// eventSyncer.trackEvent(RatingContract, 'Rating', ((x) => true)).pipe(map(x => x.rating)).subscribe((v) => {
|
||||||
// console.dir("value is ")
|
console.dir("value is ")
|
||||||
// console.dir(v)
|
console.dir(v)
|
||||||
// });
|
});
|
||||||
|
|
||||||
var max = scan((acc, curr) => {
|
var max = scan((acc, curr) => {
|
||||||
if (curr > acc) return curr;
|
if (curr > acc) return curr;
|
||||||
|
|
Loading…
Reference in New Issue