From 02e76a1ce6b44958e050cdb9cd755d1dba6ce475 Mon Sep 17 00:00:00 2001 From: poma Date: Fri, 1 Nov 2019 04:14:01 +0300 Subject: [PATCH] pass verifier address as IVerifier --- contracts/ERC20Mixer.sol | 2 +- contracts/ETHMixer.sol | 2 +- contracts/Mixer.sol | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/ERC20Mixer.sol b/contracts/ERC20Mixer.sol index 0a03c4d..a7c6c58 100644 --- a/contracts/ERC20Mixer.sol +++ b/contracts/ERC20Mixer.sol @@ -17,7 +17,7 @@ contract ERC20Mixer is Mixer { address public token; constructor( - address _verifier, + IVerifier _verifier, uint256 _denomination, uint8 _merkleTreeHeight, uint256 _emptyElement, diff --git a/contracts/ETHMixer.sol b/contracts/ETHMixer.sol index b575ce5..56a9aed 100644 --- a/contracts/ETHMixer.sol +++ b/contracts/ETHMixer.sol @@ -15,7 +15,7 @@ import "./Mixer.sol"; contract ETHMixer is Mixer { constructor( - address _verifier, + IVerifier _verifier, uint256 _denomination, uint8 _merkleTreeHeight, uint256 _emptyElement, diff --git a/contracts/Mixer.sol b/contracts/Mixer.sol index 11a0ad3..b16383c 100644 --- a/contracts/Mixer.sol +++ b/contracts/Mixer.sol @@ -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; }