From 4e591b515e2927189750934e9b658a0a7a528a6c Mon Sep 17 00:00:00 2001 From: T-Hax <> Date: Tue, 13 Jun 2023 20:04:05 +0000 Subject: [PATCH] function visibility and inheritability Signed-off-by: T-Hax <> --- contracts/core/ERC20Tornado.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/core/ERC20Tornado.sol b/contracts/core/ERC20Tornado.sol index 8130531..f356ac1 100644 --- a/contracts/core/ERC20Tornado.sol +++ b/contracts/core/ERC20Tornado.sol @@ -30,7 +30,7 @@ contract ERC20Tornado is Tornado { token = _token; } - function _processDeposit() internal override { + function _processDeposit() internal virtual override { require(msg.value == 0, "ETH value is supposed to be 0 for ERC20 instance"); token.safeTransferFrom(msg.sender, address(this), denomination); }