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