Junaidb commited on
Commit
7a311dd
·
verified ·
1 Parent(s): 490c948

Update components/functions.py

Browse files
Files changed (1) hide show
  1. 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
- sender = Keypair.from_base58(pkey)
 
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)