From 67101e1de58ba0170c8c3e779c30d0c6c477cb1c Mon Sep 17 00:00:00 2001 From: Chung Tran Date: Wed, 14 Jun 2023 11:35:23 +0700 Subject: [PATCH] fix: Blockhash not found --- .../Helpers/JupiterSendTransactionToBlockchain.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p_wallet/Scenes/Main/Swap/State/BusinessLogic/Helpers/JupiterSendTransactionToBlockchain.swift b/p2p_wallet/Scenes/Main/Swap/State/BusinessLogic/Helpers/JupiterSendTransactionToBlockchain.swift index b7c3e42131..a4f8681216 100644 --- a/p2p_wallet/Scenes/Main/Swap/State/BusinessLogic/Helpers/JupiterSendTransactionToBlockchain.swift +++ b/p2p_wallet/Scenes/Main/Swap/State/BusinessLogic/Helpers/JupiterSendTransactionToBlockchain.swift @@ -119,7 +119,7 @@ private extension Swift.Error { case let error as APIClientError: switch error { case let .responseError(response) where - response.message == "Transaction simulation failed: Blockhash not found" || + response.message?.contains("Blockhash not found") == true || response.message?.hasSuffix("custom program error: 0x1786") == true: return true default: