From f8c274564c89ef0a67e54958b236f45e1a698b80 Mon Sep 17 00:00:00 2001 From: olivier7delf <55892112+olivier7delf@users.noreply.github.com> Date: Thu, 4 Aug 2022 11:13:38 +0200 Subject: [PATCH] prettier contract --- .../src/contracts/BatchConversionPayments.sol | 5 ++++- .../test/contracts/BatchConversionPayments.test.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/smart-contracts/src/contracts/BatchConversionPayments.sol b/packages/smart-contracts/src/contracts/BatchConversionPayments.sol index 5932d1a3ab..fd747be38f 100644 --- a/packages/smart-contracts/src/contracts/BatchConversionPayments.sol +++ b/packages/smart-contracts/src/contracts/BatchConversionPayments.sol @@ -108,7 +108,10 @@ contract BatchConversionPayments is BatchPaymentsPublic { // batch Eth requires batch contract to receive funds from ethFeeProxy with a value = 0 // and also from paymentEthConversionProxy with a value > 0 receive() external payable { - require(address(msg.sender) == address(paymentEthConversionProxy) || msg.value == 0, 'Non-payable'); + require( + address(msg.sender) == address(paymentEthConversionProxy) || msg.value == 0, + 'Non-payable' + ); } /** diff --git a/packages/smart-contracts/test/contracts/BatchConversionPayments.test.ts b/packages/smart-contracts/test/contracts/BatchConversionPayments.test.ts index 1cb1239828..1b98a5d477 100644 --- a/packages/smart-contracts/test/contracts/BatchConversionPayments.test.ts +++ b/packages/smart-contracts/test/contracts/BatchConversionPayments.test.ts @@ -23,7 +23,7 @@ import Utils from '@requestnetwork/utils'; import { HttpNetworkConfig } from 'hardhat/types'; // set to true to log batch payments's gas consumption -const logGas = true; +const logGas = false; describe('contract: BatchErc20ConversionPayments', () => { const networkConfig = network.config as HttpNetworkConfig;