I am using web3 version 1.3.3 and tried to call the contract method using send() but it is showing an error above( Error: Returned error: insufficient funds for gas * price + value at Object.ErrorResponse )
const ERC20ListInst = await this.contract;
const res = await ERC20ListInst.methods.tokenToWei(addr, this.web3.utils.toHex(amount)).send({
from: this.web3.eth.defaultAccount,
gas: 100000
});
I have enough eth on the account and can't sure why this is happening. Is there anyone has faced this one before?
this.web3.eth.defaultAccount
has enough balance to pay for the transaction? – Ismael Feb 13 at 22:27