Skip to content

Commit 505bbda

Browse files
committed
padding doesn't require the ptr to move
1 parent 4147b05 commit 505bbda

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

contracts/utils/Base64.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,9 @@ library Base64 {
125125
case 1 {
126126
mstore8(sub(resultPtr, 1), 0x3d)
127127
mstore8(sub(resultPtr, 2), 0x3d)
128-
resultPtr := add(resultPtr, 2)
129128
}
130129
case 2 {
131130
mstore8(sub(resultPtr, 1), 0x3d)
132-
resultPtr := add(resultPtr, 1)
133131
}
134132
}
135133

0 commit comments

Comments
 (0)