Skip to content

Commit

Permalink
Merge pull request #1950 from input-output-hk/fix_no_return
Browse files Browse the repository at this point in the history
Fix missing return values
  • Loading branch information
mkoura authored Sep 19, 2023
2 parents 2a1df99 + 60f194b commit 48e3958
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cardano_node_tests/tests/test_addr_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ def test_deregister_registered(

if use_build_cmd:

def _build_dereg():
cluster.g_transaction.build_tx(
def _build_dereg() -> clusterlib.TxRawOutput:
return cluster.g_transaction.build_tx(
src_address=user_payment.address,
tx_name=f"{temp_template}_dereg",
tx_files=tx_files_dereg,
Expand Down Expand Up @@ -444,8 +444,8 @@ def test_deregister_not_registered_addr(
with pytest.raises(clusterlib.CLIError) as excinfo:
if use_build_cmd:

def _build_dereg():
cluster.g_transaction.build_tx(
def _build_dereg() -> clusterlib.TxRawOutput:
return cluster.g_transaction.build_tx(
src_address=user_payment.address,
tx_name=f"{temp_template}_dereg_fail",
tx_files=tx_files,
Expand Down
4 changes: 2 additions & 2 deletions cardano_node_tests/tests/test_delegation.py
Original file line number Diff line number Diff line change
Expand Up @@ -804,8 +804,8 @@ def test_addr_delegation_deregistration(

if use_build_cmd:

def _build_deleg_dereg():
cluster.g_transaction.build_tx(
def _build_deleg_dereg() -> clusterlib.TxRawOutput:
return cluster.g_transaction.build_tx(
src_address=user_payment.address,
tx_name=f"{temp_template}_deleg_dereg",
tx_files=tx_files,
Expand Down

0 comments on commit 48e3958

Please sign in to comment.