0

While using Ganache in a web UI, I have assigned defalutAddress as a particular address.

But if I have to change user , do I have to always change defaultAddress in indx.html ?

Thanks

1
  • Unless you do it dynamic, i.e. taking the address used in metamask while connecting it to ganache
    – Julissa DC
    Commented Dec 22, 2021 at 14:12

1 Answer 1

0

You can connect metamask to your ganache and connect your website after running on the server to metamask. Then you can use dynamic accounts can access in your website.

enter image description here

This is how I access accounts using metamask in the current development website.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.