Open eugenioclrc opened 5 months ago
hahahha incredible, ill take a closer look at this tomorrow, tagging @Philogy for the vibes
Hey, thanks for tagging @Maddiaa0. Exciting to see my BALLS in use. 😁
I have fix the hash operations, add some extra tests, and add @Philogy recommendations. I think its ready for a second look.
Spoiler alert, not a huge gain, but balls code seems cleaner and easier to read than the raw Huff.
testGetKey(bytes32) (gas: 0 (0.000%))
testGetKeys(bytes32,bytes32) (gas: 0 (0.000%))
testSetKey(bytes32,bytes32) (gas: 0 (0.000%))
testSetKeys(bytes32,bytes32,bytes32) (gas: 0 (0.000%))
testSetKeys2D(bytes32,bytes32,bytes32,bytes32) (gas: 0 (0.000%))
testSetKeys3D(bytes32,bytes32,bytes32,bytes32,bytes32) (gas: -9 (-0.026%))
Overall gas change: -9 (-0.006%)