iotaledger / iotaledger/ts-packages

[explorer] Errors when connected to a full node

Open
#229 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
3
Forks
3
Avg merge
1d 2h
Merged PRs (30d)
12

Description

## Bug description

screenshot 1 (2 errors : owned object and transaction blocks)
https://explorer.iota.org/address/0x45745c3d1ef637cb8c920e2bbc8b05ae2f8dbeb28fd6fb601aea92a31f35408f?network=https%3A%2F%2Fapi.mainnet.iota.cafe

Image

screenshot 2 : (1 error : transaction blocks, when "Show System Transactions" is OFF)
https://explorer.iota.org/?network=https%3A%2F%2Fapi.mainnet.iota.cafe

Image

Regarding owned objects:

https://github.com/iotaledger/ts-packages/blob/develop/apps/core/src/hooks/useGetCategorizedOwnedObjects.ts#L96
https://github.com/iotaledger/ts-packages/blob/391100447f100c8ff9b15705ca36be9d8818ee35/apps/core/src/hooks/useGetCategorizedOwnedObjects.ts#L13
On a fullnode, the maximum page size might be limited to 50?

Regarding transaction Blocks :

It seems the explorer is using the "FromOrToAddress" filter even though it's not supported by the full node
https://github.com/search?q=repo%3Aiotaledger%2Fts-packages%20path%3A%2F%5Eapps%5C%2Fexplorer%5C%2F%2F%20FromOrToAddress&type=code

Maybe you should use FromAddress and ToAddress filters as shown here:
https://github.com/iotaledger/ts-packages/blob/develop/apps/core/src/hooks/useQueryTransactionsByAddress.ts#L36

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.