Skip to content

Commit

Permalink
put underscore infront of inline function names
Browse files Browse the repository at this point in the history
  • Loading branch information
0xStabby committed Dec 30, 2023
1 parent da9fa2a commit 826aee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/extensions/ERC5725svg.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ abstract contract ERC5725svg is ERC5725 {
)));
}

function toAsciiString(address x) internal pure returns (string memory) {
function _toAsciiString(address x) internal pure returns (string memory) {
bytes memory s = new bytes(40);
for (uint i = 0; i < 20; i++) {
bytes1 b = bytes1(uint8(uint(uint160(x)) / (2**(8*(19 - i)))));
Expand All @@ -54,7 +54,7 @@ abstract contract ERC5725svg is ERC5725 {
return string(s);
}

function char(bytes1 b) internal pure returns (bytes1 c) {
function _char(bytes1 b) internal pure returns (bytes1 c) {
if (uint8(b) < 10) return bytes1(uint8(b) + 0x30);
else return bytes1(uint8(b) + 0x57);
}
Expand Down

0 comments on commit 826aee9

Please sign in to comment.