Skip to content

Commit 92f169b

Browse files
committed
Added comment
1 parent 6671958 commit 92f169b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Facets/GasZipFacet.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ contract GasZipFacet is ILiFi, ReentrancyGuard, SwapperV2, Validatable {
110110
if (
111111
_bridgeData.receiver != NON_EVM_ADDRESS &&
112112
_gasZipData.receiverAddress !=
113-
bytes32(bytes20(uint160(_bridgeData.receiver)))
113+
bytes32(bytes20(uint160(_bridgeData.receiver))) // GasZip expects the receiver address as a right-padded bytes32 value. That's why we use bytes20 instead of uint256 to ensure proper formatting
114114
) revert InvalidCallData();
115115

116116
// validate bridgeData

0 commit comments

Comments
 (0)