From 280bbbad55f625e21822f43ca9c896ca9dd4187a Mon Sep 17 00:00:00 2001 From: h-ivor Date: Thu, 16 Sep 2021 19:50:30 +0200 Subject: [PATCH] add virtual keywords to lockWithApproval and lock --- contracts/Governance.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/Governance.sol b/contracts/Governance.sol index 68c615d..e6da973 100644 --- a/contracts/Governance.sol +++ b/contracts/Governance.sol @@ -104,12 +104,12 @@ contract Governance is Initializable, Configuration, Delegation, EnsResolve { uint8 v, bytes32 r, bytes32 s - ) external { + ) external virtual { torn.permit(owner, address(this), amount, deadline, v, r, s); _transferTokens(owner, amount); } - function lockWithApproval(uint256 amount) external { + function lockWithApproval(uint256 amount) external virtual { _transferTokens(msg.sender, amount); }