fix(dapp): use plain byte array for instruction.data to match live solana dapps

This commit is contained in:
Ben Kremer 2022-11-10 17:15:10 +01:00
parent 4a6d13e422
commit cc46f67b2d

View File

@ -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,