Skip to content

Commit

Permalink
fix: naming fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaShWoof committed Jan 14, 2025
1 parent 2381830 commit 40e0370
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test/absorb-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ describe('absorb', function () {
},
reward: 'COMP',
});
const { cometExtendedAssetList : comet, tokens: {
const { cometWithExtendedAssetList : comet, tokens: {
COMP,
WETH,
}, users: [absorber, underwater] } = protocol;
Expand Down
6 changes: 3 additions & 3 deletions test/asset-info-test-asset-list-comet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { expect, exp, makeConfigurator, ONE, makeProtocol } from './helpers';

describe('asset info', function () {
it('initializes protocol', async () => {
const { cometExtendedAssetList: comet, tokens } = await makeConfigurator({
const { cometWithExtendedAssetList: comet, tokens } = await makeConfigurator({
assets: {
USDC: {},
ASSET1: {},
Expand Down Expand Up @@ -68,8 +68,8 @@ describe('asset info', function () {
});

it('reverts if index is greater than numAssets', async () => {
const { cometExtendedAssetList } = await makeConfigurator();
await expect(cometExtendedAssetList.getAssetInfo(3)).to.be.revertedWith("custom error 'BadAsset()'");
const { cometWithExtendedAssetList } = await makeConfigurator();
await expect(cometWithExtendedAssetList.getAssetInfo(3)).to.be.revertedWith("custom error 'BadAsset()'");
});

it('reverts if collateral factors are out of range', async () => {
Expand Down
4 changes: 2 additions & 2 deletions test/bulker-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('bulker', function () {
},
reward: 'COMP',
});
const { cometExtendedAssetList : comet, tokens: {
const { cometWithExtendedAssetList : comet, tokens: {
COMP,
WETH,
USDC,
Expand Down Expand Up @@ -392,7 +392,7 @@ describe('bulker', function () {
},
reward: 'COMP',
});
const { cometExtendedAssetList : comet, tokens: {
const { cometWithExtendedAssetList : comet, tokens: {
COMP,
WETH,
}, users: [alice] } = protocol;
Expand Down
8 changes: 4 additions & 4 deletions test/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,13 @@ export async function makeProtocol(opts: ProtocolOpts = {}): Promise<Protocol> {
config.extensionDelegate = extensionDelegateAssetList.address;
const CometFactoryExtendedAssetList = (await ethers.getContractFactory('CometHarnessExtendedAssetList')) as CometHarnessExtendedAssetList__factory;

const cometExtendedAssetList = await CometFactoryExtendedAssetList.deploy(config);
await cometExtendedAssetList.deployed();
const cometWithExtendedAssetList = await CometFactoryExtendedAssetList.deploy(config);
await cometWithExtendedAssetList.deployed();

if (opts.start) await ethers.provider.send('evm_setNextBlockTimestamp', [opts.start]);
await comet.initializeStorage();

await cometExtendedAssetList.initializeStorage();
await cometWithExtendedAssetList.initializeStorage();

const baseTokenBalance = opts.baseTokenBalance;
if (baseTokenBalance) {
Expand All @@ -374,7 +374,7 @@ export async function makeProtocol(opts: ProtocolOpts = {}): Promise<Protocol> {
base,
reward,
comet: await ethers.getContractAt('CometHarnessInterface', comet.address) as Comet,
cometWithExtendedAssetList: await ethers.getContractAt('CometHarnessInterfaceExtendedAssetList', cometExtendedAssetList.address) as CometWithExtendedAssetList,
cometWithExtendedAssetList: await ethers.getContractAt('CometHarnessInterfaceExtendedAssetList', cometWithExtendedAssetList.address) as CometWithExtendedAssetList,
assetListFactory: assetListFactory,
tokens,
unsupportedToken,
Expand Down

0 comments on commit 40e0370

Please sign in to comment.