A hash representing a function call with a set of inputs

terekjuditerekjudi Waterloo, OntarioMember Posts: 3
I am trying to keep track of the times a function has been called by various people such that it is executed only after a certain number of people made the same call. I tried using sha3(msg.data) however, this keeps generating different hashes with every call. I understood that msg.data contains the function call including the parameters. What am I missing here?


  • chrisethchriseth Member Posts: 170 ✭✭✭
    You could just use a state variable and increment it inside the function each time it is called, or am I missing something here?
    If you just need the function identifier from the transaction payload, you can use "msg.sig".
Sign In or Register to comment.