Skip to content

Commit

Permalink
fix: small gas optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmikko authored May 10, 2023
1 parent ce18146 commit 8cc6158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/libraries/CreditLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ library CreditLogic {
if (forbiddenTokensOnAccount == 0) return;

uint256 forbiddenTokensOnAccountBefore = enabledTokensMaskBefore & forbiddenTokenMask;
if (forbiddenTokensOnAccount & ~forbiddenTokensOnAccountBefore > 0) revert ForbiddenTokensException();
if (forbiddenTokensOnAccount & ~forbiddenTokensOnAccountBefore != 0) revert ForbiddenTokensException();

unchecked {
uint256 i;
Expand Down

0 comments on commit 8cc6158

Please sign in to comment.