Skip to content

Commit

Permalink
fixed some tsc error complains
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Wang committed Sep 12, 2023
1 parent ba090f0 commit cd3776f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/comet-ext-test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { CometHarnessInterface, FaucetToken } from '../build/types';
import { CometHarnessInterface, FaucetToken, NonStandardFaucetFeeToken } from '../build/types';
import { expect, exp, makeProtocol, setTotalsBasic } from './helpers';
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';

describe('CometExt', function () {
let comet: CometHarnessInterface;
let user: SignerWithAddress;
let tokens: { [symbol: string]: FaucetToken };
let tokens: { [symbol: string]: FaucetToken | NonStandardFaucetFeeToken };

beforeEach(async () => {
({
Expand Down
4 changes: 2 additions & 2 deletions test/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export type ConfiguratorAndProtocol = {

export type RewardsOpts = {
governor?: SignerWithAddress;
configs?: [Comet, FaucetToken, Numeric?][];
configs?: [Comet, FaucetToken | NonStandardFaucetFeeToken, Numeric?][];
};

export type Rewards = {
Expand Down Expand Up @@ -505,7 +505,7 @@ export async function makeBulker(opts: BulkerOpts): Promise<BulkerInfo> {
bulker
};
}
export async function bumpTotalsCollateral(comet: CometHarnessInterface, token: FaucetToken, delta: bigint): Promise<TotalsCollateralStructOutput> {
export async function bumpTotalsCollateral(comet: CometHarnessInterface, token: FaucetToken | NonStandardFaucetFeeToken, delta: bigint): Promise<TotalsCollateralStructOutput> {
const t0 = await comet.totalsCollateral(token.address);
const t1 = Object.assign({}, t0, { totalSupplyAsset: t0.totalSupplyAsset.toBigInt() + delta });
await token.allocateTo(comet.address, delta);
Expand Down

0 comments on commit cd3776f

Please sign in to comment.