Skip to content

Commit

Permalink
fix small errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Whytecrowe committed Nov 13, 2023
1 parent fa550c1 commit 614f1f4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/deploy/db/mongo-adapter/get-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let mongoAdapter : MongoDBAdapter | null = null;

export const getMongoAdapter = async () : Promise<MongoDBAdapter> => {
const checkParams = {
// TODO dep: fix type asserion error here
// TODO dep: fix type assertion error here
dbUri: process.env.MONGO_DB_URI!,
dbName: process.env.MONGO_DB_NAME!,
};
Expand Down
5 changes: 2 additions & 3 deletions src/deploy/missions/contracts/treasury.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { BaseDeployMission } from "../base-deploy-mission";
import { ProxyKinds } from "../../constants";
import { IDeployMissionArgs, TDeployArgs } from "../types";
import { ethers } from "ethers";
import { MeowTokenDM } from "./meow-token/meow-token";
import { TDeployArgs } from "../types";
import { znsNames } from "./names";


export class ZNSTreasuryDM extends BaseDeployMission {
proxyData = {
isProxy: true,
Expand Down
1 change: 1 addition & 0 deletions src/deploy/storage/base-storage-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { TLogger } from "../campaign/types";
import { IContractDbData, TContractDBDoc } from "../db/types";


// TODO dep: do we need this class at all? remove this if not used
export class BaseStorageAdapter {
logger : TLogger;

Expand Down
15 changes: 11 additions & 4 deletions test/ZNSRootRegistrar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,26 @@ import * as hre from "hardhat";
import { expect } from "chai";
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
import {
AccessType, defaultRoyaltyFraction, defaultTokenURI,
AccessType,
defaultRoyaltyFraction,
defaultTokenURI,
distrConfigEmpty,
hashDomainLabel, INVALID_LENGTH_ERR,
hashDomainLabel,
INVALID_LENGTH_ERR,
INITIALIZED_ERR,
INVALID_TOKENID_ERC_ERR,
normalizeName,
NOT_AUTHORIZED_REG_ERR,
NOT_BOTH_OWNER_RAR_ERR,
NOT_TOKEN_OWNER_RAR_ERR,
ONLY_NAME_OWNER_REG_ERR,
ONLY_OWNER_REGISTRAR_REG_ERR, OwnerOf, PaymentType, REGISTRAR_ROLE,
ONLY_OWNER_REGISTRAR_REG_ERR,
OwnerOf,
PaymentType,
REGISTRAR_ROLE,
validateUpgrade,
ZNS_DOMAIN_TOKEN_NAME, ZNS_DOMAIN_TOKEN_SYMBOL,
ZNS_DOMAIN_TOKEN_NAME,
ZNS_DOMAIN_TOKEN_SYMBOL,
} from "./helpers";
import { IDistributionConfig } from "./helpers/types";
import * as ethers from "ethers";
Expand Down

0 comments on commit 614f1f4

Please sign in to comment.