danielefavi / ethereum-vuejs-dapp

Decentralized application built with Ethereum blockchain and Vue JS for identity cards management.
MIT License
49 stars 24 forks source link

Profile Error - Cannot save #4

Closed mattdunndc closed 5 years ago

mattdunndc commented 5 years ago

Working with Solidity 0.5 but when you try to save a Profile, you get an invalid address error.

I am using Ganache and have imported all the accounts into MetaMask.

Uncaught (in promise) Error: invalid address

image

danielefavi commented 5 years ago

The issue was caused by the privacy mode introduced in the version 6 of Metamask. Metamask 6 does not inject a web3 instance like before; instead, dapps must request access to user accounts, which will in turn ask the user to approve or deny access to the Ethereum blockchain.

More info at: https://medium.com/metamask/https-medium-com-metamask-breaking-change-injecting-web3-7722797916a8

The dapp has been updated for Metamask 6. Thanks for reporting!

NOTE: using the dapp you can encounter on the following error:

Error: [ethjs-rpc] rpc error with payload [...]
the tx doesn't have the correct nonce. account has nonce of: 0 tx has nonce of: 12

The causes can be:

mattdunndc commented 5 years ago

Awesome! Thank you so much for your time. Really appreciate it. @danielefavi