From 0dac11f1fbd049c1262cfe8f0541b055451dd858 Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 19 Aug 2021 13:31:58 +0300 Subject: [PATCH] code stylr fixes --- .prettierignore | 2 ++ contracts/TornadoPool.sol | 2 +- hardhat.config.js | 1 + test/full.test.js | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.prettierignore b/.prettierignore index 9c43edb..23f9441 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,5 +1,7 @@ .vscode .idea artifacts +artifacts-ovm cache +cache-ovm contracts/Verifier*.sol diff --git a/contracts/TornadoPool.sol b/contracts/TornadoPool.sol index cefb61d..98946f4 100644 --- a/contracts/TornadoPool.sol +++ b/contracts/TornadoPool.sol @@ -129,7 +129,7 @@ contract TornadoPool is Initializable { } } - function calculatePublicAmount(int256 _extAmount, uint256 _fee) public pure returns(uint256) { + function calculatePublicAmount(int256 _extAmount, uint256 _fee) public pure returns (uint256) { require(_fee < MAX_FEE, "Invalid fee"); require(_extAmount > -MAX_EXT_AMOUNT && _extAmount < MAX_EXT_AMOUNT, "Invalid ext amount"); int256 publicAmount = _extAmount - int256(_fee); diff --git a/hardhat.config.js b/hardhat.config.js index ca031e1..07526b3 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -1,3 +1,4 @@ +/* eslint-disable indent */ require('@nomiclabs/hardhat-waffle') require('@eth-optimism/hardhat-ovm') require('dotenv').config() diff --git a/test/full.test.js b/test/full.test.js index 4e3168c..fb37e71 100644 --- a/test/full.test.js +++ b/test/full.test.js @@ -57,7 +57,7 @@ describe('TornadoPool', () => { await proxy .admin() .should.be.revertedWith( - "Transaction reverted: function selector was not recognized and there's no fallback function", + 'Transaction reverted: function selector was not recognized and there is no fallback function', ) }) })