From d93d7c8870fc3cd4cb1da698301e737e1606ba9c Mon Sep 17 00:00:00 2001 From: Alexey Date: Mon, 23 Aug 2021 13:20:32 +0300 Subject: [PATCH] lint --- contracts/TornadoProxy.sol | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/contracts/TornadoProxy.sol b/contracts/TornadoProxy.sol index 3068eee..59015be 100644 --- a/contracts/TornadoProxy.sol +++ b/contracts/TornadoProxy.sol @@ -16,7 +16,11 @@ contract TornadoProxy { event InstanceStateUpdated(ITornadoInstance indexed instance, InstanceState state); event TornadoTreesUpdated(ITornadoTrees addr); - enum InstanceState { DISABLED, ENABLED, MINEABLE } + enum InstanceState { + DISABLED, + ENABLED, + MINEABLE + } struct Instance { bool isERC20; @@ -42,7 +46,7 @@ contract TornadoProxy { address _tornadoTrees, address _governance, Tornado[] memory _instances - ) public { + ) { tornadoTrees = ITornadoTrees(_tornadoTrees); governance = _governance; @@ -55,7 +59,7 @@ contract TornadoProxy { ITornadoInstance _tornado, bytes32 _commitment, bytes calldata _encryptedNote - ) public virtual payable { + ) public payable virtual { Instance memory instance = instances[_tornado]; require(instance.state != InstanceState.DISABLED, "The instance is not supported"); @@ -79,7 +83,7 @@ contract TornadoProxy { address payable _relayer, uint256 _fee, uint256 _refund - ) public virtual payable { + ) public payable virtual { Instance memory instance = instances[_tornado]; require(instance.state != InstanceState.DISABLED, "The instance is not supported");