cupOJoseph / crypto-zoo

1 stars 2 forks source link

Added web3 functions for donate #20

Closed pi0neerpat closed 5 years ago

pi0neerpat commented 5 years ago

handleDonateETH()

  1. componentDidMount calls enableWeb3() which sets state for metamaskEnabled and sets accounts to the user's wallet address.
  2. When the user selects an animal using the "Donate" button, donateId is set, and the modal appears.
  3. The donate with "ETH" button calls handleDonateETH() which on error will set errorMessage to noWeb3ErrorMessage. On success, a MetaMask popup will appear asking the user to sign the transaction.

7 #4

cupOJoseph commented 5 years ago

36 replaces #20