new-docs icon indicating copy to clipboard operation
new-docs copied to clipboard

Syntax error on Python code example for sending payment

Open TheBokiya opened this issue 3 years ago • 0 comments

This line of example code for Python throws a syntax error on the asset argument.

.append_payment_op(destination=destination_id, amount="10", asset=Asset("XLM"))

It should be:

.append_payment_op(destination=destination_id, amount="10", asset_code="XLM")

TheBokiya avatar Nov 08 '21 09:11 TheBokiya