Skip to content

Commit

Permalink
ST-523: Additional fixes
Browse files Browse the repository at this point in the history
Signed-off-by: ArtObr <[email protected]>
  • Loading branch information
ArtObr committed Jun 25, 2019
1 parent 2506db9 commit 495d55a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def update_state(self, txn, prev_result, request, is_committed=False) -> None:
self._validate_txn_type(txn)
path, value_bytes = self.prepare_claim_def_for_state(txn)
self.state.set(path, value_bytes)
return txn


@staticmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def update_state(self, txn, prev_result, request, is_committed=False):
self._validate_txn_type(txn)
path, value_bytes = RevocRegDefHandler.prepare_revoc_def_for_state(txn)
self.state.set(path, value_bytes)
return txn

@staticmethod
def prepare_revoc_def_for_state(txn, path_only=False):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def update_state(self, txn, prev_result, request, is_committed=False):
revoc_def[VALUE][ISSUANCE_TYPE])
writer = writer_cls(self.state)
writer.write(current_entry, txn)
return txn

def _get_current_revoc_entry_and_revoc_def(self, author_did, revoc_reg_def_id, req_id):
assert revoc_reg_def_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def update_state(self, txn, prev_result, request, is_committed=False) -> None:
self._validate_txn_type(txn)
path, value_bytes = SchemaHandler.prepare_schema_for_state(txn)
self.state.set(path, value_bytes)
return txn

@staticmethod
def prepare_schema_for_state(txn, path_only=False):
Expand Down

0 comments on commit 495d55a

Please sign in to comment.