Skip to content

Commit 9c06762

Browse files
authored
Merge pull request #1192 from wintercooled/fix-pset-example
fix pset swap example
2 parents 816585d + 437e1e7 commit 9c06762

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/assets_tutorial/pset_swap_tutorial.py

Lines changed: 3 additions & 3 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,
214-
# which are split between the "addresses" and "nonce" field
215-
address = out["scriptPubKey"]["addresses"][0]
213+
# The rawtransaction API requires that we reconstruct the blinded address,
214+
# which is split between the "address" and "nonce" (blinding pubkey) fields
215+
address = out["scriptPubKey"]["address"]
216216
if "commitmentnonce" in out:
217217
address = alice.createblindedaddress(address, out["commitmentnonce"])
218218

0 commit comments

Comments
 (0)