LayerZero-Labs / devtools

LayerZero Developer Utilities
https://docs.layerzero.network/
97 stars 157 forks source link

🧹 Validate RPC urls #874

Closed ravinagill15 closed 2 months ago

ravinagill15 commented 2 months ago

In this PR:

ravinagill15 commented 2 months ago

You can use getNetworksByEid to see which networks have eid defined because hardhat and localhost should never have it in the config. Or just filter them manually, see what works better

If hardhat and localhost should never have eid defined, then I think it is best to filter out networks that do not have eid defined instead of manually filtering out networks with names hardhat or localhost. This is because the naming could potentially change, so checking eid is more robust imo.

Will push this fix soon!