How can I make my contract in a way that others can interact with it using metamask.
This is my code:
dapp
let input = document.getElementById("myInput").value
contract.methods.create(input)
.send({from: "my address"})
I want a way whereby whoever is interacting with the contract will have his/her metamask account address replace mine at the "my address" section.
{ from: ... }
part and let the wallet fill that in. Not really sure though, since I don't use web3js much