Skip to content

Conversation

panteleymonchuk
Copy link
Contributor

No description provided.

@panteleymonchuk panteleymonchuk requested a review from a team as a code owner September 18, 2025 11:51
Copy link

vercel bot commented Sep 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
apps-backend Ready Ready Preview Comment Oct 7, 2025 9:04am
iota-evm-bridge Ready Ready Preview Comment Oct 7, 2025 9:04am
rebased-explorer Ready Ready Preview Comment Oct 7, 2025 9:04am
wallet-dashboard Ready Ready Preview Oct 7, 2025 9:04am
2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
apps-ui-kit Ignored Ignored Preview Comment Oct 7, 2025 9:04am
iota-multisig-toolkit Ignored Ignored Preview Oct 7, 2025 9:04am

@iota-ci iota-ci added the tooling Issues related to the Tooling team label Sep 18, 2025
@github-actions github-actions bot added explorer Issues related to the Explorer and removed tooling Issues related to the Tooling team labels Sep 18, 2025
];
};

async function addressExists(client: IotaClient, address: string): Promise<boolean> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
async function addressExists(client: IotaClient, address: string): Promise<boolean> {
async function isAddress(client: IotaClient, address: string): Promise<boolean> {


if (!nameRecord || !nameRecord.targetAddress) return null;

const exists = await addressExists(client, nameRecord.targetAddress);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const exists = await addressExists(client, nameRecord.targetAddress);
const _isAddress = await isAddress(client, nameRecord.targetAddress);

Comment on lines 130 to 140
const fromTransactions = await client.queryTransactionBlocks({
filter: { FromAddress: normalized },
limit: 1,
});
if (fromTransactions.data.length > 0) return true;

const toTransactions = await client.queryTransactionBlocks({
filter: { ToAddress: normalized },
limit: 1,
});
if (toTransactions.data.length > 0) return true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this also work by doing:

Suggested change
const fromTransactions = await client.queryTransactionBlocks({
filter: { FromAddress: normalized },
limit: 1,
});
if (fromTransactions.data.length > 0) return true;
const toTransactions = await client.queryTransactionBlocks({
filter: { ToAddress: normalized },
limit: 1,
});
if (toTransactions.data.length > 0) return true;
const transactions = await client.queryTransactionBlocks({
filter: { FromOrToAddress: { addr: normalized } },
limit: 1,
});
if (toTransactions.data.length > 0) return true;

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

explorer Issues related to the Explorer tooling Issues related to the Tooling team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants