Skip to content

Commit

Permalink
Fix peerOf function state mutability (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 authored May 14, 2024
1 parent 672c22a commit 3d7b113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ports/base/PeerLookup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ abstract contract PeerLookup {

event PeerSet(uint256 chainId, address peer);

function peerOf(uint256 chainId) public virtual returns (address) {
function peerOf(uint256 chainId) public view virtual returns (address) {
return _peers[chainId];
}

Expand Down

0 comments on commit 3d7b113

Please sign in to comment.