Skip to content

Commit c8b54ff

Browse files
loosen restriction on native drop
1 parent efa455d commit c8b54ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bridge/LayerZeroReceiver.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ contract LayerZeroReceiver is Ownable, ILayerZeroComposer {
7373
bytes memory composeMsg = _message.composeMsg();
7474
(address receiver, uint256 nativeDrop, uint256 estimatedGas, bytes memory shortcutData) =
7575
abi.decode(composeMsg, (address, uint256, uint256, bytes));
76-
if (msg.value != nativeDrop) revert InvalidMsgValue(msg.value, nativeDrop);
76+
if (msg.value < nativeDrop) revert InvalidMsgValue(msg.value, nativeDrop);
7777
uint256 availableGas = gasleft();
7878
if (availableGas < estimatedGas) revert InsufficientGas(_guid, estimatedGas, availableGas);
7979

0 commit comments

Comments
 (0)