mirror of
https://github.com/tornadocash/tornado-anonymity-mining.git
synced 2024-11-22 01:37:08 +01:00
get rid of ens names for the instances
This commit is contained in:
parent
c00c62cb5f
commit
580d76958e
@ -8,15 +8,14 @@ import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
|
|||||||
import "@openzeppelin/contracts/math/Math.sol";
|
import "@openzeppelin/contracts/math/Math.sol";
|
||||||
import "./interfaces/ITornadoInstance.sol";
|
import "./interfaces/ITornadoInstance.sol";
|
||||||
import "./interfaces/ITornadoTrees.sol";
|
import "./interfaces/ITornadoTrees.sol";
|
||||||
import "torn-token/contracts/ENS.sol";
|
|
||||||
|
|
||||||
contract TornadoProxy is EnsResolve {
|
contract TornadoProxy {
|
||||||
using SafeERC20 for IERC20;
|
using SafeERC20 for IERC20;
|
||||||
|
|
||||||
event EncryptedNote(address indexed sender, bytes encryptedNote);
|
event EncryptedNote(address indexed sender, bytes encryptedNote);
|
||||||
enum InstanceState { Disabled, Enabled, Mineable }
|
enum InstanceState { Disabled, Enabled, Mineable }
|
||||||
struct Instance {
|
struct Instance {
|
||||||
bytes32 instance;
|
address instance;
|
||||||
InstanceState state;
|
InstanceState state;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,7 +37,7 @@ contract TornadoProxy is EnsResolve {
|
|||||||
governance = _governance;
|
governance = _governance;
|
||||||
|
|
||||||
for (uint256 i = 0; i < _instances.length; i++) {
|
for (uint256 i = 0; i < _instances.length; i++) {
|
||||||
instances[ITornadoInstance(resolve(_instances[i].instance))] = _instances[i].state;
|
instances[ITornadoInstance(_instances[i].instance)] = _instances[i].state;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user