From 4ce8d1c2ceb5dcc4ba34b95085c6d4fd6b61c69a Mon Sep 17 00:00:00 2001 From: Roman Semenov Date: Thu, 17 Oct 2019 16:35:23 +0300 Subject: [PATCH] fix refund --- contracts/ETHMixer.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/ETHMixer.sol b/contracts/ETHMixer.sol index 70c14bf..5707f9c 100644 --- a/contracts/ETHMixer.sol +++ b/contracts/ETHMixer.sol @@ -23,7 +23,7 @@ contract ETHMixer is Mixer { ) Mixer(_verifier, _denomination, _merkleTreeHeight, _emptyElement, _operator) public { } - function _processWithdraw(address payable _receiver, address payable _relayer, uint256 _fee, uint256 /* _refund */) internal { + function _processWithdraw(address payable _receiver, address payable _relayer, uint256 _fee, uint256 _refund) internal { require(msg.value == 0, "Message value is supposed to be zero for ETH mixer"); require(_refund == 0, "Message value is supposed to be zero for ETH mixer");