Closed GriffGreen closed 2 years ago
@aminlatifi I mention you here, you have ideas changing the setting of gas in metamask also
@aminlatifi I mention you here, you have ideas changing the setting of gas in metamask also
It's so easy. Pass this data as the last parameter of function which makes the tx, it edits the gas setting
Like this:
return await lmContract
.connect(signer.connectUnchecked())
.stakeWithPermit(
ethers.BigNumber.from(amount),
rawPermitCall.data,
{
gasLimit: 300_000,
...gasPreference,
},
);
@aminlatifi I mention you here, you have ideas changing the setting of gas in metamask also
It's so easy. Pass this data as the last parameter of function which makes the tx, it edits the gas setting
Like this:
return await lmContract .connect(signer.connectUnchecked()) .stakeWithPermit( ethers.BigNumber.from(amount), rawPermitCall.data, { gasLimit: 300_000, ...gasPreference, }, );
Gonna make this a separate issue