From fd88589ddcba5a54d2ee86b0e5c457696d7e3b20 Mon Sep 17 00:00:00 2001 From: Hdomesadi <136866128+Hdomesadi@users.noreply.github.com> Date: Sun, 9 Jul 2023 01:21:20 +0900 Subject: [PATCH] Revert "Added max payload size check" --- contracts/RelayerV2.sol | 2 -- 1 file changed, 2 deletions(-) diff --git a/contracts/RelayerV2.sol b/contracts/RelayerV2.sol index ff93dbc..9b84197 100644 --- a/contracts/RelayerV2.sol +++ b/contracts/RelayerV2.sol @@ -137,7 +137,6 @@ contract RelayerV2 is ReentrancyGuard, OwnableUpgradeable, Proxied, ILayerZeroRe } function getFee(uint16 _dstChainId, uint16 _outboundProofType, address _userApplication, uint _payloadSize, bytes calldata _adapterParams) external view override returns (uint) { - require(_payloadSize <= 10000, "Relayer: _payloadSize tooooo big"); (uint basePrice, uint pricePerByte) = _getPrices(_dstChainId, _outboundProofType, _userApplication, _adapterParams); return basePrice.add(_payloadSize.mul(pricePerByte)); } @@ -148,7 +147,6 @@ contract RelayerV2 is ReentrancyGuard, OwnableUpgradeable, Proxied, ILayerZeroRe function assignJob(uint16 _dstChainId, uint16 _outboundProofType, address _userApplication, uint _payloadSize, bytes calldata _adapterParams) external override returns (uint) { require(msg.sender == address(uln), "Relayer: invalid uln"); - require(_payloadSize <= 10000, "Relayer: _payloadSize tooooo big"); (uint basePrice, uint pricePerByte) = _getPrices(_dstChainId, _outboundProofType, _userApplication, _adapterParams); uint totalFee = basePrice.add(_payloadSize.mul(pricePerByte)); emit AssignJob(totalFee);