add virtual keywords to lockWithApproval and lock

This commit is contained in:
h-ivor 2021-09-16 19:50:30 +02:00
parent 137c095b80
commit 280bbbad55

View File

@ -104,12 +104,12 @@ contract Governance is Initializable, Configuration, Delegation, EnsResolve {
uint8 v, uint8 v,
bytes32 r, bytes32 r,
bytes32 s bytes32 s
) external { ) external virtual {
torn.permit(owner, address(this), amount, deadline, v, r, s); torn.permit(owner, address(this), amount, deadline, v, r, s);
_transferTokens(owner, amount); _transferTokens(owner, amount);
} }
function lockWithApproval(uint256 amount) external { function lockWithApproval(uint256 amount) external virtual {
_transferTokens(msg.sender, amount); _transferTokens(msg.sender, amount);
} }