@volr/react 0.1.27 → 0.1.28
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/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -18355,8 +18355,10 @@ async function sendCalls(args) {
|
|
|
18355
18355
|
for (let i = 0; i < normalizedCalls.length && i < precheckQuote.estimatedGasPerCall.length; i++) {
|
|
18356
18356
|
const estimatedGas = BigInt(precheckQuote.estimatedGasPerCall[i] ?? "0");
|
|
18357
18357
|
const currentGas = normalizedCalls[i]?.gasLimit ?? 0n;
|
|
18358
|
-
if (
|
|
18359
|
-
console.log(`[sendCalls] Call #${i}:
|
|
18358
|
+
if (currentGas > 0n) {
|
|
18359
|
+
console.log(`[sendCalls] Call #${i}: keeping frontend gasLimit ${currentGas} (backend estimated: ${estimatedGas})`);
|
|
18360
|
+
} else if (estimatedGas > 0n) {
|
|
18361
|
+
console.log(`[sendCalls] Call #${i}: using backend gasLimit ${estimatedGas}`);
|
|
18360
18362
|
normalizedCalls[i].gasLimit = estimatedGas;
|
|
18361
18363
|
}
|
|
18362
18364
|
}
|