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 (