Add variants of Array.sort for address[] and bytes32[] (#4883)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
This commit is contained in:
@ -55,9 +55,7 @@ async function fixture() {
|
||||
},
|
||||
};
|
||||
|
||||
const schedule = Array(64)
|
||||
.fill()
|
||||
.map((_, i) => (BigInt(i) * duration) / 60n + start);
|
||||
const schedule = Array.from({ length: 64 }, (_, i) => (BigInt(i) * duration) / 60n + start);
|
||||
|
||||
const vestingFn = timestamp => min(amount, (amount * (timestamp - start)) / duration);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user