mirror of
https://github.com/logos-messaging/waku-rlnv1-contract.git
synced 2026-01-08 01:03:08 +00:00
fix: withdraw is NotImplemented too
This commit is contained in:
parent
0a9fdc4fa8
commit
9998665871
@ -50,4 +50,8 @@ contract WakuRln is Ownable, RlnBase {
|
||||
{
|
||||
revert NotImplemented();
|
||||
}
|
||||
|
||||
function withdraw() external pure override {
|
||||
revert NotImplemented();
|
||||
}
|
||||
}
|
||||
|
||||
@ -77,3 +77,11 @@ _Inheriting contracts MUST override this function_
|
||||
```solidity
|
||||
function _validateSlash(uint256 idCommitment, address payable receiver, uint256[8] proof) internal pure
|
||||
```
|
||||
|
||||
### withdraw
|
||||
|
||||
```solidity
|
||||
function withdraw() external pure
|
||||
```
|
||||
|
||||
Allows a user to withdraw funds allocated to them upon slashing a member
|
||||
|
||||
@ -64,5 +64,7 @@ contract WakuRlnTest is Test {
|
||||
wakuRln.register(idCommitment);
|
||||
vm.expectRevert(NotImplemented.selector);
|
||||
wakuRln.slash(idCommitment, payable(address(0)), zeroedProof);
|
||||
vm.expectRevert(NotImplemented.selector);
|
||||
wakuRln.withdraw();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user