Guest User

Untitled

a guest
Jan 16th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. /**
  2. * @dev This function encodes a function signature and returns it.
  3. * @notice There are no spaces between the parameters types, and the
  4. * parameters names are not included when encoding.
  5. * @return bytes4 : The encoded function signature.
  6. */
  7. function encodingFunctionSignature()
  8. public
  9. returns(bytes4)
  10. {
  11. bytes4 encodedSignature = bytes4(keccak256("aFunction(string,uint256)"));
  12. return encodedSignature;
  13. }
Add Comment
Please, Sign In to add comment