Last active
December 20, 2017 02:25
-
-
Save devonwesley/13434f2fafa2430c26a4c918b510c1d8 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
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