mirror of
https://github.com/tornadocash/tornado-governance
synced 2024-02-02 14:53:55 +01:00
add virtual keywords to lockWithApproval and lock
This commit is contained in:
parent
137c095b80
commit
280bbbad55
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user