0

Running the following line of code to get the Estimated Gas, returns some errors more here

Solidity

function deposit() public payable {
    store.deposit();
}

JS

const deposit = await contract.methods.deposit()
const gas = await deposit.estimateGas({from: myAddress, value: value})

Here you can see someone had similar issue by incorrectly passing arguments, this is not true in my case sense I don't pass anything

0

After hours of research I realised there is a error in my solidity code,

Not sure exactly how but apparently some errors getting compiled in solidity giving the impression that the problem is with web3 or meta mask.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.