Skip to content

Commit

Permalink
Merge branch 'master' into orbit-chain-ownership-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
symbolpunk authored Oct 11, 2023
2 parents 53508c2 + fc66282 commit 1147042
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

0 comments on commit 1147042

Please sign in to comment.