Skip to content

Commit

Permalink
fix fee issues
Browse files Browse the repository at this point in the history
  • Loading branch information
RensR committed Oct 22, 2024
1 parent 41485cf commit 64b993a
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions contracts/src/v0.8/ccip/test/MOAFT/CCIPTestSuite.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ library Constants {
return "Ethereum mainnet";
} else if (chainSelector == 465200170687744372) {
return "Gnosis";
} else if (chainSelector == 13274425992935471758) {
} else if (chainSelector == 11344663589394136015) {
return "Binance Smart Chain";
} else if (chainSelector == 7264351850409363825) {
return "Mode";
Expand Down Expand Up @@ -249,16 +249,17 @@ contract CCIPTestSuite is Test {
deal(token, address(this), TOKENS_TO_SEND * 10);

IERC20(token).approve(address(i_router), TOKENS_TO_SEND);
i_router.ccipSend{value: 100 ether}(
destChainSelector,
Client.EVM2AnyMessage({
receiver: abi.encode(_getRandomAddress()),
data: "",
tokenAmounts: tokenAmounts,
feeToken: address(0),
extraArgs: ""
})
);

Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({
receiver: abi.encode(_getRandomAddress()),
data: "",
tokenAmounts: tokenAmounts,
feeToken: address(0),
extraArgs: ""
});
uint256 fee = i_router.getFee(destChainSelector, message);

i_router.ccipSend{value: fee}(destChainSelector, message);
}

function ExecuteMsgs(
Expand Down

0 comments on commit 64b993a

Please sign in to comment.