mirror of
https://github.com/tornadocash/tornado-nova
synced 2024-02-02 14:53:56 +01:00
code stylr fixes
This commit is contained in:
parent
3b583d2157
commit
0dac11f1fb
@ -1,5 +1,7 @@
|
||||
.vscode
|
||||
.idea
|
||||
artifacts
|
||||
artifacts-ovm
|
||||
cache
|
||||
cache-ovm
|
||||
contracts/Verifier*.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);
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* eslint-disable indent */
|
||||
require('@nomiclabs/hardhat-waffle')
|
||||
require('@eth-optimism/hardhat-ovm')
|
||||
require('dotenv').config()
|
||||
|
@ -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',
|
||||
)
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user