Skip to content
Prev Previous commit
Next Next commit
Convert tx sign to base58 for AlreadyProcessed
  • Loading branch information
afalaleev committed Apr 6, 2022
commit 45a91108308938b9cf04c289319e4ef2c1204522
3 changes: 2 additions & 1 deletion proxy/common_neon/solana_interactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ def _send_multiple_transactions(self, signer: SolanaAccount, tx_list: [Transacti
error = response.get('error')
if error:
if get_from_dict(error, 'data', 'err') == 'AlreadyProcessed':
result = tx.signature()
result = b58encode(tx.signature()).decode("utf-8")
self.debug(f'Transaction is already processed: {str(result)}')
error = None
else:
self.debug(f'Got error on transaction execution: {json.dumps(error)}')
Expand Down