Hi i have created frontend and working with web3js. Now what i am trying to do is:
- Updating the data in the contract.
- Add the address in the contract (So here in form i am asking the user to put the address (Metamask address) and want to store this in the contract that i have created.)
Now, the 1st one is correctly running and 2nd one is also running correctly but only in remix.
But, 2nd one is failing and showing error when i am sending the data to the contract from javascript.
Error i am getting:
Sending data like this:
Javascript Code:
I think that there is something to be done while sending the address to the contract i.e JS->CONTRACT. But, i am not able to figure this out. Help would be really appreciated
user
andaccount
variables are valid ethereum addresses.