Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
0xIchigo committed Feb 12, 2024
1 parent 3819595 commit f584768
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/lib/xray/lib/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,11 @@ export const search = async (
if (isValidPublicKey(query)) {
const pubkey = new PublicKey(query);
const account = await connection.getAccountInfo(pubkey);
const program = account?.owner.toString();

const program = account?.owner;
const probablyToken =
program ===
new PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA") ||
program ===
new PublicKey("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb") ||
program === "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" ||
program === "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" ||
account === null;

let addressType!: "token" | "account";
Expand Down

0 comments on commit f584768

Please sign in to comment.