diff --git a/examples/soroban_auth_atomic_swap.py b/examples/soroban_auth_atomic_swap.py index ad271cf1..ca236026 100644 --- a/examples/soroban_auth_atomic_swap.py +++ b/examples/soroban_auth_atomic_swap.py @@ -64,6 +64,8 @@ # if the error is not None, you need to handle it. op = tx.transaction.operations[0] assert isinstance(op, InvokeHostFunction) + assert simulate_resp.results is not None + assert simulate_resp.results[0].auth is not None op.auth = [ authorize_entry( simulate_resp.results[0].auth[0], diff --git a/examples/soroban_auth_with_stellar_account.py b/examples/soroban_auth_with_stellar_account.py index f8d188b6..ea02a739 100644 --- a/examples/soroban_auth_with_stellar_account.py +++ b/examples/soroban_auth_with_stellar_account.py @@ -52,6 +52,8 @@ # if the error is not None, you need to handle it. op = tx.transaction.operations[0] assert isinstance(op, InvokeHostFunction) + assert simulate_resp.results is not None + assert simulate_resp.results[0].auth is not None op.auth = [ authorize_entry( simulate_resp.results[0].auth[0],