mirror of
https://github.com/tornadocash/tornado-anonymity-mining.git
synced 2024-11-22 01:37:08 +01:00
lint
This commit is contained in:
parent
9f095bfcb2
commit
d93d7c8870
@ -16,7 +16,11 @@ contract TornadoProxy {
|
|||||||
event InstanceStateUpdated(ITornadoInstance indexed instance, InstanceState state);
|
event InstanceStateUpdated(ITornadoInstance indexed instance, InstanceState state);
|
||||||
event TornadoTreesUpdated(ITornadoTrees addr);
|
event TornadoTreesUpdated(ITornadoTrees addr);
|
||||||
|
|
||||||
enum InstanceState { DISABLED, ENABLED, MINEABLE }
|
enum InstanceState {
|
||||||
|
DISABLED,
|
||||||
|
ENABLED,
|
||||||
|
MINEABLE
|
||||||
|
}
|
||||||
|
|
||||||
struct Instance {
|
struct Instance {
|
||||||
bool isERC20;
|
bool isERC20;
|
||||||
@ -42,7 +46,7 @@ contract TornadoProxy {
|
|||||||
address _tornadoTrees,
|
address _tornadoTrees,
|
||||||
address _governance,
|
address _governance,
|
||||||
Tornado[] memory _instances
|
Tornado[] memory _instances
|
||||||
) public {
|
) {
|
||||||
tornadoTrees = ITornadoTrees(_tornadoTrees);
|
tornadoTrees = ITornadoTrees(_tornadoTrees);
|
||||||
governance = _governance;
|
governance = _governance;
|
||||||
|
|
||||||
@ -55,7 +59,7 @@ contract TornadoProxy {
|
|||||||
ITornadoInstance _tornado,
|
ITornadoInstance _tornado,
|
||||||
bytes32 _commitment,
|
bytes32 _commitment,
|
||||||
bytes calldata _encryptedNote
|
bytes calldata _encryptedNote
|
||||||
) public virtual payable {
|
) public payable virtual {
|
||||||
Instance memory instance = instances[_tornado];
|
Instance memory instance = instances[_tornado];
|
||||||
require(instance.state != InstanceState.DISABLED, "The instance is not supported");
|
require(instance.state != InstanceState.DISABLED, "The instance is not supported");
|
||||||
|
|
||||||
@ -79,7 +83,7 @@ contract TornadoProxy {
|
|||||||
address payable _relayer,
|
address payable _relayer,
|
||||||
uint256 _fee,
|
uint256 _fee,
|
||||||
uint256 _refund
|
uint256 _refund
|
||||||
) public virtual payable {
|
) public payable virtual {
|
||||||
Instance memory instance = instances[_tornado];
|
Instance memory instance = instances[_tornado];
|
||||||
require(instance.state != InstanceState.DISABLED, "The instance is not supported");
|
require(instance.state != InstanceState.DISABLED, "The instance is not supported");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user