pet-shop-tutorial
pet-shop-tutorial copied to clipboard
Refactor initialization and account tracking
- initWeb3 now follows Metamask recommendation: See https://docs.metamask.io/guide/ethereum-provider.html
- App.account holds the active account. When the user changes accounts in Metamask App.account is updated.