Skip to content

Commit

Permalink
Merge pull request #20 from passabilities/view-state-mutability
Browse files Browse the repository at this point in the history
Add missing view state mutability
  • Loading branch information
wighawag authored Oct 4, 2024
2 parents 1f2d14d + db0a973 commit b667ab5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/Deployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ contract TagsReader {
// --------------------------------------------------------------------------------------------
// Public Interface
// --------------------------------------------------------------------------------------------
function readTagsFromContext(string calldata context) external returns (string[] memory tags) {
function readTagsFromContext(string calldata context) external view returns (string[] memory tags) {
string memory root = vm.projectRoot();

// TODO configure file name ?
Expand Down Expand Up @@ -383,7 +383,7 @@ contract GlobalDeployer is Deployer {
}
}

function _getDeploymentContext() private returns (string memory context) {
function _getDeploymentContext() private view returns (string memory context) {
// no deploymentContext provided we fallback on chainID
uint256 currentChainID;
assembly {
Expand Down

0 comments on commit b667ab5

Please sign in to comment.