From e254019f13d75c83809c15d559a93eab4ded9b20 Mon Sep 17 00:00:00 2001 From: h-ivor Date: Thu, 16 Sep 2021 23:05:24 +0200 Subject: [PATCH] add virtual keyword to withdraw() in proxy for inheritance --- contracts/TornadoProxy.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/TornadoProxy.sol b/contracts/TornadoProxy.sol index 12a34ad..be03987 100644 --- a/contracts/TornadoProxy.sol +++ b/contracts/TornadoProxy.sol @@ -60,7 +60,7 @@ contract TornadoProxy is EnsResolve { address payable _relayer, uint256 _fee, uint256 _refund - ) external payable { + ) external virtual payable { require(instances[_tornado], "The instance is not supported"); _tornado.withdraw{ value: msg.value }(_proof, _root, _nullifierHash, _recipient, _relayer, _fee, _refund);