Skip to content

Commit ac5b71f

Browse files
authored
fix: invalid return in revoke function (#132)
1 parent 66f1a65 commit ac5b71f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

contracts/BaseDocumentStore.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ contract BaseDocumentStore is Initializable {
4848
function _revoke(bytes32 document) internal onlyNotRevoked(document) returns (bool) {
4949
documentRevoked[document] = block.number;
5050
emit DocumentRevoked(document);
51+
52+
return true;
5153
}
5254

5355
function _bulkRevoke(bytes32[] memory documents) internal {

contracts/DocumentStoreWithRevokeReasons.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ contract DocumentStoreWithRevokeReasons is DocumentStore {
2121
revoke(document);
2222
revokeReason[document] = reason;
2323
emit DocumentRevokedWithReason(document, reason);
24+
25+
return true;
2426
}
2527

2628
function bulkRevoke(bytes32[] memory documents, uint256 reason) public {

0 commit comments

Comments
 (0)