Skip to content

Commit

Permalink
Add comments removed by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
ezynda3 committed Dec 6, 2024
1 parent d1f9dd9 commit 5f59b49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Facets/AcrossFacetPackedV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ contract AcrossFacetPackedV3 is ILiFi, TransferrableOwnership {
function encode_startBridgeTokensViaAcrossV3NativePacked(
PackedParameters calldata _parameters
) external pure returns (bytes memory) {
// there are already existing networks with chainIds outside uint32 range but since we not support either of them yet,
// we feel comfortable using this approach to save further gas
require(
_parameters.destinationChainId <= type(uint32).max,
"destinationChainId value passed too big to fit in uint32"
Expand Down Expand Up @@ -256,6 +258,8 @@ contract AcrossFacetPackedV3 is ILiFi, TransferrableOwnership {
address sendingAssetId,
uint256 inputAmount
) external pure returns (bytes memory) {
// there are already existing networks with chainIds outside uint32 range but since we not support either of them yet,
// we feel comfortable using this approach to save further gas
require(
_parameters.destinationChainId <= type(uint32).max,
"destinationChainId value passed too big to fit in uint32"
Expand Down

0 comments on commit 5f59b49

Please sign in to comment.