Skip to content

Commit

Permalink
Merge pull request #662 from snmkl/fix/deploy-hardhat-update
Browse files Browse the repository at this point in the history
fix(quickstart-hardhat): update deploy.js code to work with latest ve…
  • Loading branch information
symbolpunk authored Oct 11, 2023
2 parents c2ff67a + 116046a commit fc66282
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions arbitrum-docs/for-devs/quickstart-solidity-hardhat.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,9 @@ Open `scripts/deploy.js` and replace its contents with the following:
const hre = require('hardhat');

async function main() {
const VendingMachineFactory = await hre.ethers.getContractFactory('VendingMachine');
const vendingMachine = await VendingMachineFactory.deploy();
await vendingMachine.deployed();

console.log(`Cupcake vending machine deployed to ${vendingMachine.address}`);
const vendingMachine = await hre.ethers.deployContract("VendingMachine");
await vendingMachine.waitForDeployment();
console.log(`Cupcake vending machine deployed to ${vendingMachine.target}`);
}

main().catch((error) => {
Expand Down

1 comment on commit fc66282

@vercel
Copy link

@vercel vercel bot commented on fc66282 Oct 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.