Last active
April 29, 2022 05:21
-
-
Save caffeinum/87a5d0efa7e2087c283bc7cc4828917e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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