Skip to content

Commit

Permalink
Fix typo on Base64 padding
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestognw committed Sep 25, 2021
1 parent 755bbd3 commit 00e6097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/utils/Base64.sol
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ library Base64 {
}

// When data `bytes` is not exactly 3 bytes long
// it is padded with `=` characters at the beginning
// it is padded with `=` characters at the end
switch mod(mload(data), 3)
case 1 {
mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
Expand Down

0 comments on commit 00e6097

Please sign in to comment.