Use autofill_and_sign as new name

This commit is contained in:
JST5000
2023-06-08 14:22:29 -07:00
parent a5f3d15778
commit 45d9e894ed
8 changed files with 11 additions and 11 deletions

View File

@@ -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