From 781ba8d1979a545c2cd597323d028cf1f17929b5 Mon Sep 17 00:00:00 2001 From: Alexander Biryukov Date: Tue, 1 Aug 2023 14:00:43 +0300 Subject: [PATCH] fix M8 for all --- contracts/feeDistributor/ContractWcFeeDistributor.sol | 2 +- contracts/feeDistributor/ElOnlyFeeDistributor.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/feeDistributor/ContractWcFeeDistributor.sol b/contracts/feeDistributor/ContractWcFeeDistributor.sol index 5e15720..a42e10c 100644 --- a/contracts/feeDistributor/ContractWcFeeDistributor.sol +++ b/contracts/feeDistributor/ContractWcFeeDistributor.sol @@ -225,7 +225,7 @@ contract ContractWcFeeDistributor is BaseFeeDistributor { uint256 balance = address(this).balance; if (balance > 0) { // only happens if at least 1 party reverted in their receive - bool success = P2pAddressLib._sendValue(_to, balance); + bool success = P2pAddressLib._sendValueWithoutGasRestrictions(_to, balance); if (success) { emit FeeDistributor__EtherRecovered(_to, balance); diff --git a/contracts/feeDistributor/ElOnlyFeeDistributor.sol b/contracts/feeDistributor/ElOnlyFeeDistributor.sol index abbba3e..9581c15 100644 --- a/contracts/feeDistributor/ElOnlyFeeDistributor.sol +++ b/contracts/feeDistributor/ElOnlyFeeDistributor.sol @@ -91,7 +91,7 @@ contract ElOnlyFeeDistributor is BaseFeeDistributor { uint256 balance = address(this).balance; if (balance > 0) { // only happens if at least 1 party reverted in their receive - bool success = P2pAddressLib._sendValue(_to, balance); + bool success = P2pAddressLib._sendValueWithoutGasRestrictions(_to, balance); if (success) { emit FeeDistributor__EtherRecovered(_to, balance);