Created
February 8, 2019 15:22
-
-
Save fzeoli/46e7a1acf657e4e30f0b4e7efcdcb947 to your computer and use it in GitHub Desktop.
This file contains 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
async function main() { | |
const Greeter = artifacts.require("Greeter"); | |
const greeter = await Greeter.new("Hello, Buidler!"); | |
console.log("Greeter deployed to:", greeter.address); | |
} | |
main() | |
.then(() => process.exit(0)) | |
.catch(error => { | |
console.error(error); | |
process.exit(1); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment