You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function testToNibblesDifferential(uint256r, bytesmemorys) public {
351
+
if (r &0x01==0) {
352
+
_brutalizeMemory();
353
+
_misalignFreeMemoryPointer();
354
+
}
355
+
bytesmemory computed = LibBit.toNibbles(s);
356
+
_checkMemory(computed);
357
+
assertEq(computed, _toNibblesOriginal(s));
358
+
}
359
+
360
+
// Original code from Optimism (MIT-licensed): https://github.com/ethereum-optimism/optimism/blob/1bfc93f7c1fe1846217795a1f6051e1b0260f597/packages/contracts-bedrock/src/libraries/Bytes.sol#L94
361
+
function _toNibblesOriginal(bytesmemoryinput) internalpurereturns (bytesmemoryresult) {
0 commit comments