mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-25 06:05:51 +00:00
Use autofill_and_sign as new name
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from xrpl.clients import JsonRpcClient
|
||||
from xrpl.models.transactions import Payment, Memo
|
||||
from xrpl.transaction import safe_sign_and_autofill_transaction, submit_and_wait
|
||||
from xrpl.transaction import autofill_and_sign, submit_and_wait
|
||||
from xrpl.wallet import generate_faucet_wallet
|
||||
|
||||
# This code sample validates and sends a transaction with a Memo attached
|
||||
@@ -42,7 +42,7 @@ payment_tx = Payment(
|
||||
|
||||
# Sign the transaction
|
||||
print("Submitting a payment transaction with our memo...")
|
||||
payment_tx_signed = safe_sign_and_autofill_transaction(payment_tx, wallet=test_wallet, client=client)
|
||||
payment_tx_signed = autofill_and_sign(payment_tx, wallet=test_wallet, client=client)
|
||||
print(f"\n Encoded Transaction MEMO: {payment_tx_signed.memos}")
|
||||
|
||||
# Send the transaction to the node
|
||||
|
||||
Reference in New Issue
Block a user