Hi, trying to call a function from frontend app, but metamask keep saying that "you sending 0 ethers". Have idea why, anyone knows what is the problem?
ABI:
{
"inputs": [
{
"internalType": "uint256",
"name": "_ethAmount",
"type": "uint256"
}
],
"name": "fund",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
the function in js app that I call
const tx = await contract.fund(2)
I'm stuck....
Jan 17, 2024, 4:17 PM
Jan 17, 2024, 4:17 PM