From 5cb1895955d09564bd2b6d4ba0fb914c21e5fd94 Mon Sep 17 00:00:00 2001 From: Tomas Martykan Date: Thu, 16 Jan 2025 13:55:32 +0100 Subject: [PATCH] fix(connect): solana transaction decode --- packages/connect/src/api/solana/solanaUtils.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/connect/src/api/solana/solanaUtils.ts b/packages/connect/src/api/solana/solanaUtils.ts index 6edc746ec20..75fd350bb36 100644 --- a/packages/connect/src/api/solana/solanaUtils.ts +++ b/packages/connect/src/api/solana/solanaUtils.ts @@ -85,14 +85,12 @@ export async function createTransactionShim(message: CompilableTransactionMessag } export async function createTransactionShimFromHex(rawTx: string) { - const { getBase16Encoder, getCompiledTransactionMessageDecoder, decompileTransactionMessage } = - await loadSolanaLib(); + const { getBase16Encoder, getTransactionDecoder } = await loadSolanaLib(); const txByteArray = getBase16Encoder().encode(rawTx); - const compiledMessage = getCompiledTransactionMessageDecoder().decode(txByteArray); - const message = decompileTransactionMessage(compiledMessage); + const transaction = getTransactionDecoder().decode(txByteArray); - return createTransactionShim(message); + return createTransactionShimCommon(transaction); } const addPriorityFees = async (