We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baed24d commit 31dab1eCopy full SHA for 31dab1e
contracts/lib/ExitPayloadReader.sol
@@ -44,6 +44,8 @@ library ExitPayloadReader {
44
src += WORD_SIZE;
45
dest += WORD_SIZE;
46
}
47
+
48
+ if (len == 0) return;
49
50
// left over bytes. Mask is used to remove unwanted bytes from the word
51
uint256 mask = 256**(WORD_SIZE - len) - 1;
0 commit comments