Not able to sign transaction , upredictable gas limit

trying to make a staking contract where user will deposit 10 erc20 token and with draw 5 erc20 token, I am following the same way as mentioned in opengsn documents for UI part .
Is this a gas estimation error, can we sent gas limit in gsnprovider manually ?

Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={“code”:-32000,“message”:“execution reverted”}, method=“estimateGas”, transaction={“from”:“0xb1551B2b46df680E8e25E97232888a26ecdc01F5”,“to”:“0x03a28C4D980ea5fD94A20cCEd6D06876B49faCf0”,“data”:“0xc89039c5”,“accessList”:null}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.5.0)

yes, you can override the estimate gas in the usual way, by calling:

await myContract.depositToken( {gasLimit: 1e6} )
1 Like