Skip to content

Commit

Permalink
fix buffer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
asktree committed Aug 23, 2023
1 parent 2d5b086 commit d00d26a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/explorer/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit d00d26a

Please sign in to comment.