Description
Blockchain transactions are submitted without estimating gas limits first. If the default gas limit is too low, transactions will fail silently, and users will lose gas fees.
Suggested Fix
Always call estimateGas() before sending transactions and display the estimated gas cost to the user for confirmation.
Description
Blockchain transactions are submitted without estimating gas limits first. If the default gas limit is too low, transactions will fail silently, and users will lose gas fees.
Suggested Fix
Always call
estimateGas()before sending transactions and display the estimated gas cost to the user for confirmation.