diff --git a/src/ServiceManagerBase.sol b/src/ServiceManagerBase.sol index 64b5f056..b959c121 100644 --- a/src/ServiceManagerBase.sol +++ b/src/ServiceManagerBase.sol @@ -79,9 +79,9 @@ abstract contract ServiceManagerBase is IServiceManager, OwnableUpgradeable { for (uint256 i = 0; i < rangePayments.length; ++i) { // transfer token to ServiceManager and approve PaymentCoordinator to transfer again // in payForRange() call - rangePayments[i].token.transferFrom(msg.sender, address(this), rangePayments[i].amount); + rangePayments[i].token.transferFrom(msg.sender, address(this), rangePayments[i].amount); rangePayments[i].token.approve(address(_paymentCoordinator), rangePayments[i].amount); - } + } _paymentCoordinator.payForRange(rangePayments); }