Last active
December 20, 2017 02:25
-
-
Save devonwesley/4717e933d07e1c405281b522179514e3 to your computer and use it in GitHub Desktop.
Code snippet of a callback for a contract being deployed.
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 newContractCallback(name) { | |
return (err, contract) => { | |
getAccounts() | |
if (!err) { | |
!contract.address | |
? status(`Deploying contract..`) | |
: renderContract(contract, name) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment