Junaidb commited on
Commit
1ef6a10
·
verified ·
1 Parent(s): 18e0280

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -38,9 +38,10 @@ async def relay_txn(payload: dict):
38
  # Deserialize the transaction sent from the UI
39
  raw_tx = base58.b58decode(payload['txn'])
40
  txn = Transaction.from_bytes(raw_tx)
41
- txn.sign([SERVER_KEY], txn.message.recent_blockhash)
 
42
  partial_signed_bytes = bytes(txn)
43
- encoded_txn = base58.b58encode(partial_signed_bytes).decode('utf-8')
44
 
45
 
46
  return {
 
38
  # Deserialize the transaction sent from the UI
39
  raw_tx = base58.b58decode(payload['txn'])
40
  txn = Transaction.from_bytes(raw_tx)
41
+ txn.partial_sign([SERVER_KEY])
42
+
43
  partial_signed_bytes = bytes(txn)
44
+ encoded_txn = base58.b58encode(partial_signed_bytes).decode("utf-8")
45
 
46
 
47
  return {