Skip to content

Commit

Permalink
fix: provide swap fee as env on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Jan 22, 2024
1 parent f7cbf03 commit f8a60f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions ethereum/fly/.env.github
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ PROD_PRIVATE_KEY="00000000000000000000000000000000000000000000000000000000000000
DEV_PRIVATE_KEY="0000000000000000000000000000000000000000000000000000000000000000"
LOCAL_PRIVATE_KEY="ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
OWNER_ADDRESS="0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
SWAP_FEE=10
2 changes: 2 additions & 0 deletions ethereum/fly/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ dist

node_modules
.env
.env.*
!.env.github
coverage
coverage.json
typechain
Expand Down
4 changes: 2 additions & 2 deletions ethereum/fly/scripts/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ethers } from "hardhat";
require("dotenv").config();

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

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

0 comments on commit f8a60f1

Please sign in to comment.