Skip to content

Instantly share code, notes, and snippets.

@devonwesley
Last active December 20, 2017 02:25
Show Gist options
  • Save devonwesley/13434f2fafa2430c26a4c918b510c1d8 to your computer and use it in GitHub Desktop.
Save devonwesley/13434f2fafa2430c26a4c918b510c1d8 to your computer and use it in GitHub Desktop.
function renderContract(contract, contractName) {
status(`Contract Deployed...`)
const { transactionHash, address } = contract
web3.eth.getTransaction(transactionHash, (err, transaction) => {
if (!err) {
const props = { ...transaction, ...contract, }
const details = {
blockNumber: transaction.blockNumber,
contractName,
address,
}
createContractPanel(details, panel => createContract(props, panel))
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment