Skip to content

Commit

Permalink
➡️ Migrate to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
oemerfurkan committed Apr 9, 2024
1 parent e496632 commit 36c6653
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
File renamed without changes.
14 changes: 13 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"name": "KDAO",
"type": "module",
"version": "0.0.0",
"description": "KDAO",
"scripts": {
"deploy": "npx hardhat run scripts/deploy.js --network zkSyncTestnet"
},
Expand Down
12 changes: 7 additions & 5 deletions scripts/deploy.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const { Deployer } = require("@matterlabs/hardhat-zksync-deploy");
const { Wallet, utils } = require("zksync-ethers");
const ethers = require("ethers");
import { Deployer } from "@matterlabs/hardhat-zksync-deploy";
import { Wallet } from "zksync-ethers";
import * as ethers from "ethers";

const dotenv = require("dotenv");
import dotenv from "dotenv";
dotenv.config();

/** @const {string} */
Expand Down Expand Up @@ -64,4 +64,6 @@ async function main() {
console.log(verificationId);
}

main().catch((err) => console.log(err));
main()
.then()
.catch((err) => console.log(err));

0 comments on commit 36c6653

Please sign in to comment.