fix secure signing

This commit is contained in:
Mayukha Vadari
2021-06-03 13:36:12 -04:00
parent 04e6ac795c
commit 2e8074865c

View File

@@ -2,7 +2,7 @@
import os import os
my_secret = os.getenv("MYSECRET") my_secret = os.getenv("MYSECRET")
from xrpl.wallet import Wallet from xrpl.wallet import Wallet
wallet = Wallet(seed="MYSECRET", sequence=16237283) wallet = Wallet(seed=my_secret, sequence=16237283)
print(wallet.classic_address) # "raaFKKmgf6CRZttTVABeTcsqzRQ51bNR6Q" print(wallet.classic_address) # "raaFKKmgf6CRZttTVABeTcsqzRQ51bNR6Q"
from xrpl.models.transactions import Payment from xrpl.models.transactions import Payment
@@ -12,7 +12,7 @@ my_payment = Payment(
amount=xrp_to_drops(22), amount=xrp_to_drops(22),
fee="10", fee="10",
destination="rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe", destination="rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe",
sequence=16126889, sequence=16237283,
) )
print("Payment object:", my_payment) print("Payment object:", my_payment)