mirror of
https://github.com/tornadocash/tornado-governance
synced 2024-02-02 14:53:55 +01:00
Merge pull request #2 from h-ivor/master
Add virtual keywords to lockWithApproval and lock
This commit is contained in:
commit
72a13ed9aa
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user