Skip to content

Commit

Permalink
Fix parsing operations with empty parameter (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout authored Jul 29, 2021
1 parent 9cc6877 commit 05c29ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dipdup/datasources/tzkt/datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,8 @@ def convert_operation(cls, operation_json: Dict[str, Any]) -> OperationData:
nonce=operation_json.get('nonce'),
target_alias=operation_json['target'].get('alias') if operation_json.get('target') else None,
initiator_alias=operation_json['initiator'].get('alias') if operation_json.get('initiator') else None,
entrypoint=operation_json['parameter']['entrypoint'] if operation_json.get('parameter') else None,
parameter_json=operation_json['parameter']['value'] if operation_json.get('parameter') else None,
entrypoint=operation_json['parameter'].get('entrypoint') if operation_json.get('parameter') else None,
parameter_json=operation_json['parameter'].get('value') if operation_json.get('parameter') else None,
originated_contract_address=operation_json['originatedContract']['address']
if operation_json.get('originatedContract')
else None,
Expand Down

0 comments on commit 05c29ed

Please sign in to comment.