5

I opened truffle console and when I type my contract's name, I see a very long message on the console but not sure How do I deploy the contract and find the deployed contract address. Kindly advise.

  • Please improve your question to get it answered – Aniket Jun 22 '17 at 13:33
13
$truffle console
truffle(development)>compile
truffle(development)>migrate
truffle(development)>contract_name.new().then(function(res) { sc = contract_name.at(res.address) })
truffle(development)>sc.address 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.