Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function main() {
// You can run Buidler tasks from a script.
// For example, we make sure everything is compiled by running "compile"
await env.run("compile");
// We require the artifacts once our contracts are compiled
const Greeter = env.artifacts.require("Greeter");
const greeter = await Greeter.new("Hello, world!");
console.log("Greeter address:", greeter.address);
}