Skip to content

Commit

Permalink
remove await
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowv0vshadow committed Jun 4, 2024
1 parent 02979fb commit b9f48c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions electrumx/server/session/session_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ async def make_transfer_inputs(result, inputs_atomicals, tx_inputs, make_type) -
result[_i.txin_index].append(_data)
return result

async def make_transfer_outputs(result, outputs: Dict) -> Dict[int, List[Dict]]:
def make_transfer_outputs(result, outputs: Dict) -> Dict[int, List[Dict]]:
for k, v in outputs:
for _atomical_id, _output in v["atomicals"].items():
_compact_atomical_id = location_id_bytes_to_compact(_atomical_id)
Expand All @@ -1117,12 +1117,12 @@ async def make_transfer_outputs(result, outputs: Dict) -> Dict[int, List[Dict]]:
if not operation_type and not op_raw:
op_raw = "transfer"
await make_transfer_inputs(res["transfers"]["inputs"], blueprint_builder.ft_atomicals, tx.inputs, "FT")
await make_transfer_outputs(res["transfers"]["outputs"], blueprint_builder.ft_output_blueprint.outputs)
make_transfer_outputs(res["transfers"]["outputs"], blueprint_builder.ft_output_blueprint.outputs)
if blueprint_builder.nft_atomicals and atomicals_spent_at_inputs:
if not operation_type and not op_raw:
op_raw = "transfer"
await make_transfer_inputs(res["transfers"]["inputs"], blueprint_builder.nft_atomicals, tx.inputs, "NFT")
await make_transfer_outputs(res["transfers"]["outputs"], blueprint_builder.nft_output_blueprint.outputs)
make_transfer_outputs(res["transfers"]["outputs"], blueprint_builder.nft_output_blueprint.outputs)

(
payment_id,
Expand Down

0 comments on commit b9f48c4

Please sign in to comment.