We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efa455d commit c8b54ffCopy full SHA for c8b54ff
src/bridge/LayerZeroReceiver.sol
@@ -73,7 +73,7 @@ contract LayerZeroReceiver is Ownable, ILayerZeroComposer {
73
bytes memory composeMsg = _message.composeMsg();
74
(address receiver, uint256 nativeDrop, uint256 estimatedGas, bytes memory shortcutData) =
75
abi.decode(composeMsg, (address, uint256, uint256, bytes));
76
- if (msg.value != nativeDrop) revert InvalidMsgValue(msg.value, nativeDrop);
+ if (msg.value < nativeDrop) revert InvalidMsgValue(msg.value, nativeDrop);
77
uint256 availableGas = gasleft();
78
if (availableGas < estimatedGas) revert InsufficientGas(_guid, estimatedGas, availableGas);
79
0 commit comments