Skip to content

Commit 79fc256

Browse files
author
wintercooled
committed
fix pset swap example
1 parent 816585d commit 79fc256

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/assets_tutorial/pset_swap_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@
210210
elif out in decoded_c["vout"]:
211211
blinder_idx = carol_idx
212212

213-
# The crappy rawtransaction API requires that we reconstruct blinded addresses,
213+
# The rawtransaction API requires that we reconstruct blinded addresses,
214214
# which are split between the "addresses" and "nonce" field
215-
address = out["scriptPubKey"]["addresses"][0]
215+
address = out["scriptPubKey"]["address"]
216216
if "commitmentnonce" in out:
217217
address = alice.createblindedaddress(address, out["commitmentnonce"])
218218

0 commit comments

Comments
 (0)