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 73b6c96
Show file tree
Hide file tree
Showing 2 changed files with 162 additions and 262 deletions.
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
Loading

0 comments on commit 73b6c96

Please sign in to comment.