Skip to content

Instantly share code, notes, and snippets.

@caffeinum
Last active April 29, 2022 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caffeinum/87a5d0efa7e2087c283bc7cc4828917e to your computer and use it in GitHub Desktop.
Save caffeinum/87a5d0efa7e2087c283bc7cc4828917e to your computer and use it in GitHub Desktop.
// use at https://gate-rinkeby.buildship.dev/deploy/...
// when contract address isnt fetched from tx properly
const verifyContract = address => {
const [,hash] = window.location.href.match(/deploy\/(\w+)/)
localStorage.deployedContracts = JSON.stringify({ ...JSON.parse(localStorage.deployedContracts), [hash]: address })
window.location.reload()
}
verifyContract("0xaddress")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment