alephium / explorer

The explorer front-end for Alephium protocol
https://explorer.alephium.org
GNU Lesser General Public License v3.0
12 stars 7 forks source link

Devnet NetworkType Missing #250

Open iliachesnokov opened 4 months ago

iliachesnokov commented 4 months ago

The frontend of the explorer crashes when trying to open a page in the devnet environment.

This issue arises because the networkTypes enum currently only includes testnet and mainnet. https://github.com/alephium/explorer/blob/d1b2623698310218aceaec09305344544470210e/src/types/network.ts#L19

During clients initialization, the current network type is checked against this enum. https://github.com/alephium/explorer/blob/d1b2623698310218aceaec09305344544470210e/src/api/client.ts#L70-L72

As a result, an exception is thrown with the message "Value of the VITE_NETWORK_TYPE environment variable is invalid.", preventing the frontend explorer from working with the devnet network.

iliachesnokov commented 4 months ago

To solve this problem, PR https://github.com/alephium/explorer/pull/248 must be merged.

mvaivre commented 4 months ago

@iliachesnokov We have switched to a monorepo a few months ago. Please check out https://github.com/alephium/alephium-frontend/tree/next/apps/explorer for the latest version :)

I'll archive this repo to avoid confusion.