From cc46f67b2da4d12c3fcfe0634031c43b94e5d634 Mon Sep 17 00:00:00 2001 From: Ben Kremer Date: Thu, 10 Nov 2022 17:15:10 +0100 Subject: [PATCH] fix(dapp): use plain byte array for `instruction.data` to match live solana dapps --- dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx b/dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx index 3d0e312..3c09d1a 100644 --- a/dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx +++ b/dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx @@ -562,7 +562,7 @@ export function JsonRpcContextProvider({ recentBlockhash: transaction.recentBlockhash, instructions: transaction.instructions.map((i) => ({ programId: i.programId.toBase58(), - data: bs58.encode(i.data), + data: Array.from(i.data), keys: i.keys.map((k) => ({ isSigner: k.isSigner, isWritable: k.isWritable,