Skip to content

Commit

Permalink
remove duplicate check
Browse files Browse the repository at this point in the history
  • Loading branch information
sirarthurmoney committed Nov 7, 2023
1 parent 6cf68e0 commit aae82d2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions contracts/token/oft/v2/fee/NativeOFTWithFee.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ contract NativeOFTWithFee is OFTWithFee, ReentrancyGuard {
function _send(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) internal virtual override returns (uint amount) {
_checkGasLimit(_dstChainId, PT_SEND, _adapterParams, NO_EXTRA_GAS);

require(_amount > 0, "NativeOFTWithFee: amount too small");
uint messageFee;
(messageFee, amount) = _debitFromNative(_from, _amount, _dstChainId);

Expand All @@ -54,7 +53,6 @@ contract NativeOFTWithFee is OFTWithFee, ReentrancyGuard {
function _sendAndCall(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes memory _payload, uint64 _dstGasForCall, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) internal virtual override returns (uint amount) {
_checkGasLimit(_dstChainId, PT_SEND_AND_CALL, _adapterParams, _dstGasForCall);

require(_amount > 0, "NativeOFTWithFee: amount too small");
uint messageFee;
(messageFee, amount) = _debitFromNative(_from, _amount, _dstChainId);

Expand Down

0 comments on commit aae82d2

Please sign in to comment.