@cryptorubic/web3 1.0.0-alpha-rub-1044.0 → 1.0.0-alpha-rub-1044.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -74,7 +74,7 @@ class EvmAdapterSigner extends abstract_adapter_signer_1.AbstractAdapterSigner {
|
|
|
74
74
|
...(params.txOptions.data && { data: params.txOptions.data })
|
|
75
75
|
};
|
|
76
76
|
const gas = params.txOptions.gas ? BigInt(params.txOptions.gas) : await this.publicClient.estimateGas(gaslessParams);
|
|
77
|
-
const calculatedGas = params.txOptions.gasLimitRatio
|
|
77
|
+
const calculatedGas = !params.txOptions.gas && params.txOptions.gasLimitRatio
|
|
78
78
|
? BigInt(new bignumber_js_1.default(gas.toString()).multipliedBy(params.txOptions.gasLimitRatio).toFixed(0))
|
|
79
79
|
: gas;
|
|
80
80
|
const gasfulParams = {
|