Junaidb commited on
Commit
6f74c05
·
verified ·
1 Parent(s): 4e24402

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ import hashlib
12
  import os
13
  #from helpers.mongodbconnection import provideClient
14
  from fastapi.concurrency import run_in_threadpool
15
-
16
 
17
 
18
 
@@ -230,7 +230,7 @@ async def broadcast_transaction(payload: TransactionPayload):
230
  """
231
  try:
232
 
233
- raw_tx = base64.b64decode(payload.signed_hex)
234
 
235
  response = solana_client.send_raw_transaction(raw_tx,opts=TxOpts(skip_preflight=False))
236
 
 
12
  import os
13
  #from helpers.mongodbconnection import provideClient
14
  from fastapi.concurrency import run_in_threadpool
15
+ import pybase64
16
 
17
 
18
 
 
230
  """
231
  try:
232
 
233
+ raw_tx = pybase64.b64decode(payload.signed_hex)
234
 
235
  response = solana_client.send_raw_transaction(raw_tx,opts=TxOpts(skip_preflight=False))
236