Skip to content

Commit 3cfebcb

Browse files
Amxxernestognw
andauthored
Refactor Heap.sol to remove index and lookup (#5190)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
1 parent f209815 commit 3cfebcb

File tree

7 files changed

+159
-1012
lines changed

7 files changed

+159
-1012
lines changed

contracts/utils/structs/Heap.sol

Lines changed: 71 additions & 396 deletions
Large diffs are not rendered by default.

scripts/generate/run.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ for (const [file, template] of Object.entries({
3737
'utils/structs/Checkpoints.sol': './templates/Checkpoints.js',
3838
'utils/structs/EnumerableSet.sol': './templates/EnumerableSet.js',
3939
'utils/structs/EnumerableMap.sol': './templates/EnumerableMap.js',
40-
'utils/structs/Heap.sol': './templates/Heap.js',
4140
'utils/SlotDerivation.sol': './templates/SlotDerivation.js',
4241
'utils/StorageSlot.sol': './templates/StorageSlot.js',
4342
'utils/Arrays.sol': './templates/Arrays.js',
@@ -50,7 +49,6 @@ for (const [file, template] of Object.entries({
5049
// Tests
5150
for (const [file, template] of Object.entries({
5251
'utils/structs/Checkpoints.t.sol': './templates/Checkpoints.t.js',
53-
'utils/structs/Heap.t.sol': './templates/Heap.t.js',
5452
'utils/Packing.t.sol': './templates/Packing.t.js',
5553
'utils/SlotDerivation.t.sol': './templates/SlotDerivation.t.js',
5654
})) {

scripts/generate/templates/Heap.js

Lines changed: 0 additions & 327 deletions
This file was deleted.

scripts/generate/templates/Heap.opts.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)