mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-01-11 21:19:25 -05:00
pass verifier address as IVerifier
This commit is contained in:
parent
d019e48da3
commit
02e76a1ce6
@ -17,7 +17,7 @@ contract ERC20Mixer is Mixer {
|
||||
address public token;
|
||||
|
||||
constructor(
|
||||
address _verifier,
|
||||
IVerifier _verifier,
|
||||
uint256 _denomination,
|
||||
uint8 _merkleTreeHeight,
|
||||
uint256 _emptyElement,
|
||||
|
@ -15,7 +15,7 @@ import "./Mixer.sol";
|
||||
|
||||
contract ETHMixer is Mixer {
|
||||
constructor(
|
||||
address _verifier,
|
||||
IVerifier _verifier,
|
||||
uint256 _denomination,
|
||||
uint8 _merkleTreeHeight,
|
||||
uint256 _emptyElement,
|
||||
|
@ -47,13 +47,13 @@ contract Mixer is MerkleTreeWithHistory {
|
||||
@param _operator operator address (see operator above)
|
||||
*/
|
||||
constructor(
|
||||
address _verifier,
|
||||
IVerifier _verifier,
|
||||
uint256 _denomination,
|
||||
uint8 _merkleTreeHeight,
|
||||
uint256 _emptyElement,
|
||||
address _operator
|
||||
) MerkleTreeWithHistory(_merkleTreeHeight, _emptyElement) public {
|
||||
verifier = IVerifier(_verifier);
|
||||
verifier = _verifier;
|
||||
operator = _operator;
|
||||
denomination = _denomination;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user