Skip to content

Commit

Permalink
fix: deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Jan 21, 2024
1 parent 1eb4293 commit f7cbf03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion ethereum/fly/.env.github
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ PROD_PRIVATE_KEY="00000000000000000000000000000000000000000000000000000000000000
DEV_PRIVATE_KEY="0000000000000000000000000000000000000000000000000000000000000000"
LOCAL_PRIVATE_KEY="ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
OWNER_ADDRESS="0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
FLY_CANISTER_ETH_ADDRESS="0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
8 changes: 2 additions & 6 deletions ethereum/fly/scripts/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import { ethers } from "hardhat";
require("dotenv").config();

const { OWNER_ADDRESS, FLY_CANISTER_ETH_ADDRESS } = process.env;
const { OWNER_ADDRESS } = process.env;

async function main() {
// deploy contract
const Contract = await ethers.getContractFactory("Fly");
const contract = await Contract.deploy(
OWNER_ADDRESS!,
FLY_CANISTER_ETH_ADDRESS!,
761_035
);
const contract = await Contract.deploy(OWNER_ADDRESS!, 761_035);
await contract.waitForDeployment();
const address = await contract.getAddress();
console.log(`Contract deployed to ${address}`);
Expand Down

0 comments on commit f7cbf03

Please sign in to comment.