Skip to content

Commit

Permalink
minor speedup
Browse files Browse the repository at this point in the history
  • Loading branch information
ZumZoom committed Jul 26, 2022
1 parent 2d8931d commit c3b0619
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/libraries/UniERC20.sol
Original file line number Diff line number Diff line change
@@ -96,7 +96,9 @@ library UniERC20 {
if (success && data.length == 32) {
uint256 len = 0;
while (len < data.length && data[len] >= 0x20 && data[len] <= 0x7E) {
len++;
unchecked {
len++;
}
}

if (len > 0) {

0 comments on commit c3b0619

Please sign in to comment.