-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve translation between solidity and javascript issues
- Loading branch information
Showing
34 changed files
with
2,341 additions
and
82 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* eslint prefer-const: "off" */ | ||
|
||
import "@nomicfoundation/hardhat-ethers"; | ||
|
||
async function main() { | ||
const [deployer] = await ethers.getSigners(); | ||
const tinyHops = ethers.getContractFactory("TinyHops"); | ||
const customModicum = ethers.getContractFactory("CustomModicum"); | ||
const contract = await ethers.deployContract("CustomModicum", { }); | ||
await contract.waitForDeployment(); | ||
console.log("the addr", contract.target); | ||
const tinyHopsContract = await ethers.deployContract("TinyHops", [contract.target]); | ||
await tinyHopsContract.waitForDeployment(); | ||
console.log("tiny hops addr", tinyHopsContract.target); | ||
} | ||
main() |
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
Oops, something went wrong.