mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-05-07 16:55:02 -04:00
check that eth value in ERC20 deposit is zero
This commit is contained in:
parent
bec65f217f
commit
b578213b0c
2 changed files with 9 additions and 0 deletions
|
@ -28,6 +28,7 @@ contract ERC20Mixer is Mixer {
|
|||
}
|
||||
|
||||
function _processDeposit() internal {
|
||||
require(msg.value == 0, "ETH value is supposed to be 0 for ETH mixer");
|
||||
safeErc20TransferFrom(msg.sender, address(this), denomination);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue