fix scan taking only 4 values
This commit is contained in:
parent
327c8a3ec0
commit
08ba467781
|
@ -5,9 +5,6 @@ let web3 = new Web3("ws://localhost:8545");
|
|||
|
||||
let myscan = scan((acc, curr) => {
|
||||
acc.push(curr);
|
||||
if (acc.length > 4) {
|
||||
acc.shift();
|
||||
}
|
||||
return acc;
|
||||
}, [])
|
||||
|
||||
|
|
|
@ -5,9 +5,6 @@ let web3 = new Web3("ws://localhost:8545");
|
|||
|
||||
let myscan = scan((acc, curr) => {
|
||||
acc.push(curr);
|
||||
if (acc.length > 4) {
|
||||
acc.shift();
|
||||
}
|
||||
return acc;
|
||||
}, [])
|
||||
|
||||
|
|
|
@ -5,9 +5,6 @@ let web3 = new Web3("ws://localhost:8545");
|
|||
|
||||
let myscan = scan((acc, curr) => {
|
||||
acc.push(curr);
|
||||
if (acc.length > 4) {
|
||||
acc.shift();
|
||||
}
|
||||
return acc;
|
||||
}, [])
|
||||
|
||||
|
|
Loading…
Reference in New Issue