Commit dc2d2099 authored by Maurelian's avatar Maurelian Committed by GitHub

Merge pull request #8455 from ethereum-optimism/ctb/pure-getsel

contracts-bedrock: fix warning on _getSel, restrict to pure
parents 8df680a3 43d38124
......@@ -210,7 +210,7 @@ contract Authorization_Test is CommonTest {
}
/// @dev Computes the selector from a function signature.
function _getSel(string memory _name) internal returns (bytes4) {
function _getSel(string memory _name) internal pure returns (bytes4) {
return bytes4(keccak256(abi.encodePacked(_name)));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment