code stylr fixes

This commit is contained in:
Alexey 2021-08-19 13:31:58 +03:00
parent 3b583d2157
commit 0dac11f1fb
4 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,7 @@
.vscode .vscode
.idea .idea
artifacts artifacts
artifacts-ovm
cache cache
cache-ovm
contracts/Verifier*.sol contracts/Verifier*.sol

View File

@ -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(_fee < MAX_FEE, "Invalid fee");
require(_extAmount > -MAX_EXT_AMOUNT && _extAmount < MAX_EXT_AMOUNT, "Invalid ext amount"); require(_extAmount > -MAX_EXT_AMOUNT && _extAmount < MAX_EXT_AMOUNT, "Invalid ext amount");
int256 publicAmount = _extAmount - int256(_fee); int256 publicAmount = _extAmount - int256(_fee);

View File

@ -1,3 +1,4 @@
/* eslint-disable indent */
require('@nomiclabs/hardhat-waffle') require('@nomiclabs/hardhat-waffle')
require('@eth-optimism/hardhat-ovm') require('@eth-optimism/hardhat-ovm')
require('dotenv').config() require('dotenv').config()

View File

@ -57,7 +57,7 @@ describe('TornadoPool', () => {
await proxy await proxy
.admin() .admin()
.should.be.revertedWith( .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',
) )
}) })
}) })