Add variants of Array.sort for address[] and bytes32[] (#4883)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
This commit is contained in:
@ -8,13 +8,7 @@ async function fixture() {
|
||||
|
||||
/** Rebuild the content of the deque as a JS array. */
|
||||
const getContent = () =>
|
||||
mock.$length(0).then(length =>
|
||||
Promise.all(
|
||||
Array(Number(length))
|
||||
.fill()
|
||||
.map((_, i) => mock.$at(0, i)),
|
||||
),
|
||||
);
|
||||
mock.$length(0).then(length => Promise.all(Array.from({ length: Number(length) }, (_, i) => mock.$at(0, i))));
|
||||
|
||||
return { mock, getContent };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user