Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit d2a1ef9

Browse files
committed
Fix tests
1 parent d84b163 commit d2a1ef9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/handlers/fee/handlerRouter.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ contract("FeeHandlerRouter", async (accounts) => {
1818
const nonAdmin = accounts[1];
1919
const whitelistAddress = accounts[2];
2020
const nonWhitelistAddress = accounts[3];
21+
const recipientAddress = accounts[3];
2122
const bridgeAddress = accounts[4];
22-
const recipient = accounts[5];
2323

2424
const assertOnlyAdmin = (method, ...params) => {
2525
return TruffleAssert.reverts(
@@ -126,7 +126,7 @@ contract("FeeHandlerRouter", async (accounts) => {
126126
);
127127
await BasicFeeHandlerInstance.changeFee(Ethers.utils.parseEther("0.5"));
128128

129-
const depositData = Helpers.createERCDepositData(100, 20, recipient);
129+
const depositData = Helpers.createERCDepositData(100, 20, recipientAddress);
130130
let res = await FeeHandlerRouterInstance.calculateFee.call(
131131
whitelistAddress,
132132
originDomainID,
@@ -159,7 +159,7 @@ contract("FeeHandlerRouter", async (accounts) => {
159159
);
160160
await BasicFeeHandlerInstance.changeFee(Ethers.utils.parseEther("0.5"));
161161

162-
const depositData = Helpers.createERCDepositData(100, 20, recipient);
162+
const depositData = Helpers.createERCDepositData(100, 20, recipientAddress);
163163
await Helpers.expectToRevertWithCustomError(
164164
FeeHandlerRouterInstance.collectFee(
165165
whitelistAddress,
@@ -203,7 +203,7 @@ contract("FeeHandlerRouter", async (accounts) => {
203203
);
204204
await BasicFeeHandlerInstance.changeFee(Ethers.utils.parseEther("0.5"));
205205

206-
const depositData = Helpers.createERCDepositData(100, 20, recipient);
206+
const depositData = Helpers.createERCDepositData(100, 20, recipientAddress);
207207
await TruffleAssert.passes(
208208
FeeHandlerRouterInstance.collectFee(
209209
whitelistAddress,

0 commit comments

Comments
 (0)