Update components/functions.py
Browse files- components/functions.py +2 -1
components/functions.py
CHANGED
|
@@ -180,7 +180,8 @@ def SolanaPayment(state):
|
|
| 180 |
if state["address"]=="75BgVvMNZ8Es1JffEDNYxWNVE2yoBTndLxViARhYWPF":
|
| 181 |
pkey=map["pkey"]
|
| 182 |
|
| 183 |
-
|
|
|
|
| 184 |
recipient = Pubkey.from_string(state["to"])
|
| 185 |
|
| 186 |
lamports = int(float(state["amount"]) * 1_000_000_000)
|
|
|
|
| 180 |
if state["address"]=="75BgVvMNZ8Es1JffEDNYxWNVE2yoBTndLxViARhYWPF":
|
| 181 |
pkey=map["pkey"]
|
| 182 |
|
| 183 |
+
secret = b58decode(pkey)
|
| 184 |
+
sender = Keypair.from_bytes(secret)
|
| 185 |
recipient = Pubkey.from_string(state["to"])
|
| 186 |
|
| 187 |
lamports = int(float(state["amount"]) * 1_000_000_000)
|