Skip to content

Commit

Permalink
prettier contract
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier7delf committed Aug 4, 2022
1 parent 1eb224d commit f8c2745
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f8c2745

Please sign in to comment.