Extend Checkpoints with new sizes and lookup mechanisms (#3589)

This commit is contained in:
Hadrien Croubois
2022-08-30 21:32:12 +02:00
committed by GitHub
parent 4b16e88747
commit 71aaca2d9d
20 changed files with 1189 additions and 153 deletions

View File

@ -42,9 +42,9 @@ module.exports = format(
'using SafeCast for int256;',
'',
toUint(256),
...LENGTHS.map(size => toUintDownCast(size)),
...LENGTHS.map(toUintDownCast),
toInt(256),
...LENGTHS.map(size => toIntDownCast(size)),
...LENGTHS.map(toIntDownCast),
].flatMap(fn => fn.split('\n')).slice(0, -1),
'}',
);