Skip to content

Commit

Permalink
Fix forked tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lastperson committed Aug 28, 2024
1 parent 71afaee commit f626a98
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions testUnderForked/calculateFeeERC20EVM.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ contract("TwapFeeHandler - [calculateFee]", async (accounts) => {
let QuoterInstance;
let DynamicFeeHandlerInstance;
let resourceID;
let depositData;

beforeEach(async () => {
await Promise.all([
Expand Down Expand Up @@ -116,6 +117,12 @@ contract("TwapFeeHandler - [calculateFee]", async (accounts) => {
);
await DynamicFeeHandlerInstance.setWrapTokenAddress(destinationDomainID, MATIC_ADDRESS);
await DynamicFeeHandlerInstance.setFeeProperties(gasUsed);

depositData = Helpers.createERCDepositData(
100,
20,
sender,
);
});

it("[fixed protocol fee] should get the correct values", async () => {
Expand All @@ -125,7 +132,7 @@ contract("TwapFeeHandler - [calculateFee]", async (accounts) => {
originDomainID,
destinationDomainID,
resourceID,
"0x00",
depositData,
"0x00"
);

Expand Down Expand Up @@ -161,7 +168,7 @@ contract("TwapFeeHandler - [calculateFee]", async (accounts) => {
originDomainID,
destinationDomainID,
resourceID,
"0x00",
depositData,
"0x00"
);

Expand Down

0 comments on commit f626a98

Please sign in to comment.