Skip to content

Instantly share code, notes, and snippets.

@tpmccallum
Created October 19, 2019 05:28
Show Gist options
  • Select an option

  • Save tpmccallum/558bc19a404c2a728e224839ac16219b to your computer and use it in GitHub Desktop.

Select an option

Save tpmccallum/558bc19a404c2a728e224839ac16219b to your computer and use it in GitHub Desktop.

Python

selectorHash = "0x" + str(web3.toHex(web3.sha3(text="set(uint256)")))[2:10]

Javascript

var selectorHash = web3.sha3("set(uint256)").substring(0,10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment