From d00d26a240c03406e9b8d0e8da4504fe68b77716 Mon Sep 17 00:00:00 2001 From: agrippa kellum Date: Wed, 23 Aug 2023 14:07:09 -0400 Subject: [PATCH] fix buffer issue --- components/explorer/tools.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/explorer/tools.ts b/components/explorer/tools.ts index 33fb61a624..d8e6c33690 100644 --- a/components/explorer/tools.ts +++ b/components/explorer/tools.ts @@ -48,9 +48,9 @@ export async function getExplorerInspectorUrl( const message = transaction instanceof Transaction - ? transaction.serializeMessage() - : transaction.message.serialize() - explorerUrl.searchParams.append('message', message.toString('base64')) + ? transaction.serializeMessage().toString('base64') + : Buffer.from(transaction.message.serialize()).toString('base64') + explorerUrl.searchParams.append('message', message) if (connection.cluster === 'devnet') { explorerUrl.searchParams.append('cluster', 'devnet')