We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, Congratulations for all your work ! The code is very clear to understand. A quick remark:
Description The function ccipSend in MockCCIPRouter doesn't check if:
msg.value
msg.value == 0
I think it could be a great improvement for automatic tests to add these checks in order to be closer to the true behavior of the router.
Basic Information Example:
function ccipSend( uint64 destinationChainSelector, Client.EVM2AnyMessage calldata message ) external payable returns (bytes32) { uint256 feeTokenAmount = getFee(destinationChainSelector, message); if (message.feeToken == address(0)) { if (msg.value < feeTokenAmount) revert InsufficientFeeTokenAmount(); } else{ if (msg.value > 0) revert InvalidMsgValue(); }
The text was updated successfully, but these errors were encountered:
Thank you for the request. You can track progress on the issue at the following PR
#896
Sorry, something went wrong.
Great, thank you very much !
jhweintraub
No branches or pull requests
Hello,
Congratulations for all your work ! The code is very clear to understand.
A quick remark:
Description
The function ccipSend in MockCCIPRouter doesn't check if:
msg.value
is enough to pay the fees in the case of using native tokens.msg.value == 0
if non native tokens are usedI think it could be a great improvement for automatic tests to add these checks in order to be closer to the true behavior of the router.
Basic Information
Example:
The text was updated successfully, but these errors were encountered: