Skip to content

Commit

Permalink
contracts: use _ prefix for hasSuffix args
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseguy committed Jul 17, 2024
1 parent 0065c42 commit 68aacdd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/contracts-bedrock/scripts/Artifacts.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ abstract contract Artifacts {
}
}

function hasSuffix(string memory fullString, string memory suffix) public pure returns (bool) {
bytes memory fullStringBytes = bytes(fullString);
bytes memory suffixBytes = bytes(suffix);
function hasSuffix(string memory _fullString, string memory _suffix) public pure returns (bool) {
bytes memory fullStringBytes = bytes(_fullString);
bytes memory suffixBytes = bytes(_suffix);

// Check if the suffix's length is greater than the full string's length
if (suffixBytes.length > fullStringBytes.length) {
Expand Down

0 comments on commit 68aacdd

Please sign in to comment.