Skip to content

Commit

Permalink
Fix var naming
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptofish7 committed Dec 5, 2021
1 parent 2e12f1b commit f4a44e6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/JToken.proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ describe("JCollateralCapErc20 and JWrappedNative implementation upgrades", funct
JUSDC_DELEGATOR_ARTIFACT.abi,
JUSDC_DELEGATOR_ARTIFACT.bytecode
);
this.Old = await ethers.getContractFactory(
this.JUsdcDelegateCFOld = await ethers.getContractFactory(
JUSDC_DELEGATE_ARTIFACT.abi,
JUSDC_DELEGATE_ARTIFACT.bytecode
);
this.New = await ethers.getContractFactory("JCollateralCapErc20Delegate");
this.JUsdcDelegateCFNew = await ethers.getContractFactory(
"JCollateralCapErc20Delegate"
);

this.JAvaxDelegatorCF = await ethers.getContractFactory(
JAVAX_DELEGATOR_ARTIFACT.abi,
Expand All @@ -40,7 +42,9 @@ describe("JCollateralCapErc20 and JWrappedNative implementation upgrades", funct
this.jUsdcDelegator = await this.JUsdcDelegatorCF.attach(
JUSDC_DELEGATOR_ARTIFACT.address
);
this.jUsdc = await this.Old.attach(JUSDC_DELEGATOR_ARTIFACT.address);
this.jUsdc = await this.JUsdcDelegateCFOld.attach(
JUSDC_DELEGATOR_ARTIFACT.address
);

this.jAvaxDelegator = await this.JAvaxDelegatorCF.attach(
JAVAX_DELEGATOR_ARTIFACT.address
Expand Down Expand Up @@ -93,7 +97,7 @@ describe("JCollateralCapErc20 and JWrappedNative implementation upgrades", funct
const totalCollateralTokensBefore =
await this.jUsdc.totalCollateralTokens();

const newDelegate = await this.New.deploy();
const newDelegate = await this.JUsdcDelegateCFNew.deploy();

// Upgrade implementation contract
await this.jUsdcDelegator
Expand Down

0 comments on commit f4a44e6

Please sign in to comment.