Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Sep 20, 2023
1 parent ab8cb9e commit 412b730
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/soroban_auth_atomic_swap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
2 changes: 2 additions & 0 deletions examples/soroban_auth_with_stellar_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 412b730

Please sign in to comment.