Skip to content

Commit

Permalink
fix: search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfrosty committed Jan 14, 2025
1 parent 89cd152 commit 5934f54
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/components/SearchBar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';

import { useCluster } from '@providers/cluster';
import { VersionedMessage } from '@solana/web3.js';
import { Cluster } from '@utils/cluster';
import bs58 from 'bs58';
import { useRouter, useSearchParams } from 'next/navigation';
Expand All @@ -13,8 +14,6 @@ import { FetchedDomainInfo } from '../api/domain-info/[domain]/route';
import { LOADER_IDS, LoaderName, PROGRAM_INFO_BY_ID, SPECIAL_IDS, SYSVAR_IDS } from '../utils/programs';
import { searchTokens } from '../utils/token-search';
import { MIN_MESSAGE_LENGTH } from './inspector/RawInputCard';
import { VersionedMessage } from '@solana/web3.js';
import base58 from 'bs58';

interface SearchOptions {
label: string;
Expand Down Expand Up @@ -366,7 +365,7 @@ function decodeTransactionFromBase64(base64String: string): {
for (let i = 0; i < numSignatures; i++) {
const sigBytes = buffer.subarray(offset, offset + 64);
if (sigBytes.length !== 64) return null;
signatures.push(base58.encode(sigBytes));
signatures.push(bs58.encode(sigBytes));
offset += 64;
}

Expand Down

0 comments on commit 5934f54

Please sign in to comment.