mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-22 04:35:49 +00:00
fix secure signing
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import os
|
||||
my_secret = os.getenv("MYSECRET")
|
||||
from xrpl.wallet import Wallet
|
||||
wallet = Wallet(seed="MYSECRET", sequence=16237283)
|
||||
wallet = Wallet(seed=my_secret, sequence=16237283)
|
||||
print(wallet.classic_address) # "raaFKKmgf6CRZttTVABeTcsqzRQ51bNR6Q"
|
||||
|
||||
from xrpl.models.transactions import Payment
|
||||
@@ -12,7 +12,7 @@ my_payment = Payment(
|
||||
amount=xrp_to_drops(22),
|
||||
fee="10",
|
||||
destination="rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe",
|
||||
sequence=16126889,
|
||||
sequence=16237283,
|
||||
)
|
||||
print("Payment object:", my_payment)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user