-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First iteration of improvements to the viem template
- Loading branch information
1 parent
49bc12f
commit db7e95d
Showing
4 changed files
with
48 additions
and
62 deletions.
There are no files selected for viewing
File renamed without changes.
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
13 changes: 5 additions & 8 deletions
13
v-next/hardhat/templates/node-test-runner-viem/scripts/deploy-counter-contract.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import hre from "@ignored/hardhat-vnext"; | ||
import { network } from "@ignored/hardhat-vnext"; | ||
|
||
async function deployCounterContract() { | ||
const optimism = await hre.network.connect("local-base", "optimism"); | ||
console.log("Deploying a contract into a local fork of Optimism"); | ||
const { viem } = await network.connect("edrOp", "optimism"); | ||
|
||
const contract = await optimism.ethers.deployContract("Counter"); | ||
const counter = await viem.deployContract("Counter"); | ||
|
||
console.log("Counter contract address:", await contract.getAddress()); | ||
} | ||
|
||
deployCounterContract(); | ||
console.log("Counter contract address:", await counter.address); |
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