Skip to content

Commit

Permalink
Unify types
Browse files Browse the repository at this point in the history
  • Loading branch information
vrde committed Dec 5, 2023
1 parent 070ffc9 commit 62c5c49
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/sequence/setup.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
import { BigNumber, Wallet } from "ethers";
import { parseEther } from "ethers/lib/utils";
import { HardhatRuntimeEnvironment } from "hardhat/types";

import { NeokingdomDAO, expandable } from "../internal/core";
import {
ContractContext,
Contributor,
DAOConfig,
NeokingdomContracts,
Sequence,
Expand All @@ -15,20 +13,15 @@ import {
export type SetupContext = ContractContext & {
deployer: Wallet | SignerWithAddress;
config: DAOConfig;
hre: HardhatRuntimeEnvironment;
};

export function generateSetupContext(
config: DAOConfig,
hre: HardhatRuntimeEnvironment
) {
export function generateSetupContext(config: DAOConfig) {
async function _generateSetupContext(n: NeokingdomDAO) {
const contracts = (await n.loadContractsPartial()) as NeokingdomContracts;
const context: SetupContext = {
...contracts,
config,
deployer: n.config.deployer,
hre,
};
return context;
}
Expand Down

0 comments on commit 62c5c49

Please sign in to comment.