fix: withdraw is NotImplemented too

This commit is contained in:
rymnc 2023-08-02 10:54:59 +05:30
parent 0a9fdc4fa8
commit 9998665871
No known key found for this signature in database
GPG Key ID: AAA088D5C68ECD34
3 changed files with 14 additions and 0 deletions

View File

@ -50,4 +50,8 @@ contract WakuRln is Ownable, RlnBase {
{
revert NotImplemented();
}
function withdraw() external pure override {
revert NotImplemented();
}
}

View File

@ -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

View File

@ -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();
}
}