Skip to content

Commit

Permalink
Use contractBalance as amount on origination (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout authored Jul 9, 2021
1 parent 6a7aa58 commit bb51567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dipdup/datasources/tzkt/datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ def convert_operation(cls, operation_json: Dict[str, Any]) -> OperationData:
counter=operation_json['counter'],
sender_address=operation_json['sender']['address'] if operation_json.get('sender') else None,
target_address=operation_json['target']['address'] if operation_json.get('target') else None,
amount=operation_json.get('amount'),
amount=operation_json.get('amount') or operation_json.get('contractBalance'),
status=operation_json['status'],
has_internals=operation_json.get('hasInternals'),
sender_alias=operation_json['sender'].get('alias'),
Expand Down

0 comments on commit bb51567

Please sign in to comment.