Skip to content

Commit

Permalink
Temporary mark 'pure' function as 'view' only
Browse files Browse the repository at this point in the history
  • Loading branch information
elenadimitrova committed Oct 10, 2017
1 parent ceaa3b1 commit 88903e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contracts/Resolver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "../lib/dappsys/auth.sol";
contract Resolver is DSAuth {
struct Pointer { address destination; uint outsize; }
mapping (bytes4 => Pointer) public pointers;

event Confirmation(address sender);
function register(string signature, address destination, uint outsize) public
auth
{
Expand All @@ -33,7 +33,9 @@ contract Resolver is DSAuth {
}
}

function stringToSig(string signature) public pure returns(bytes4) {
//TODO: mark this function as `pure` when SC is fixed https://github.com/sc-forks/solidity-coverage/issues/111#issuecomment-335382282
function stringToSig(string signature) public view returns(bytes4) {
Confirmation(msg.sender);
return bytes4(keccak256(signature));
}
}

0 comments on commit 88903e3

Please sign in to comment.