From 412b73076b9e072147463ddeb12773736bda9b16 Mon Sep 17 00:00:00 2001 From: overcat <4catcode@gmail.com> Date: Wed, 20 Sep 2023 10:57:41 +0800 Subject: [PATCH] WIP --- examples/soroban_auth_atomic_swap.py | 2 ++ examples/soroban_auth_with_stellar_account.py | 2 ++ 2 files changed, 4 insertions(+) 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],