lukso-network / universalprofile-test-dapp

Testing dApps for ERC725 and Universal Profiles.
https://up-test-dapp.lukso.tech/
17 stars 14 forks source link

feat: select network used by DApp #119

Closed JeneaVranceanu closed 1 year ago

JeneaVranceanu commented 1 year ago

See the video of how it works below.

With #117 DApp began to use only test net for its internal requests like:

const upOwner = await window.erc725Account.methods.owner().call()

This brings up quite a few issues for one simple reason - we can connect two applications that use different networks and that breaks everything. Example: when erc725Account is from L16 and DApp tries to use methods.owner().call() it expects the address of erc725Account to exist on testnet and sends requests to testnet RPC providers. From that line on everything stops working because there's no such address on testnet.


Also, there are a few other bug fixes like:


https://github.com/lukso-network/universalprofile-test-dapp/assets/36865532/339045eb-5220-42cb-93fe-96404f917d86

github-actions[bot] commented 1 year ago

Deployed with Cloudflare Pages :cloud: :rocket: :ok: