Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/research/xcm_scripts' into resea…
Browse files Browse the repository at this point in the history
…rch/xcm_scripts
  • Loading branch information
valentunn committed Dec 25, 2024
2 parents f320d22 + e3cb1cc commit c5dfe39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/xcm_transfers/xcm/dry_run/events/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ def find_events(events: List, event_module: str, event_name: str) -> List[dict]:

def find_event_with_attributes(events: List, event_module: str, event_name: str, attributes_filter: Callable[[dict], bool]) -> dict | None:
matching_events = find_events(events, event_module, event_name)
return next((e for e in matching_events if attributes_filter(e["attributes"])), None)
return next((e for e in matching_events if attributes_filter(e["attributes"])), None)
2 changes: 1 addition & 1 deletion scripts/xcm_transfers/xcm/dry_run/events/deposit.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ def _find_orml_deposit_amount(
if event is None:
return None

return event["attributes"]["amount"]
return event["attributes"]["amount"]

0 comments on commit c5dfe39

Please sign in to comment.