mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-05-04 23:34:58 -04:00
ETHMixer refund test
This commit is contained in:
parent
63771560c6
commit
a13a7306e2
2 changed files with 29 additions and 1 deletions
|
@ -24,8 +24,9 @@ contract ETHMixer is Mixer {
|
|||
}
|
||||
|
||||
function _processWithdraw(address payable _receiver, address payable _relayer, uint256 _fee, uint256 _refund) internal {
|
||||
// sanity checks
|
||||
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");
|
||||
require(_refund == 0, "Refund value is supposed to be zero for ETH mixer");
|
||||
|
||||
_receiver.transfer(denomination - _fee);
|
||||
if (_fee > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue