@volr/react 0.1.23 → 0.1.24

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 CHANGED
@@ -18085,15 +18085,11 @@ function validateCalls2(calls) {
18085
18085
  }
18086
18086
 
18087
18087
  // src/wallet/normalize.ts
18088
- function defaultGasLimit(data) {
18089
- const normalized = normalizeHex(data);
18090
- return normalized === "0x" || normalized === "0x0" ? 21000n : 100000n;
18091
- }
18092
18088
  function normalizeCall(call2) {
18093
18089
  const normalizedTarget = getAddress(call2.target);
18094
18090
  const normalizedData = normalizeHex(call2.data);
18095
18091
  const value = call2.value ?? 0n;
18096
- const gasLimit = call2.gasLimit && call2.gasLimit > 0n ? call2.gasLimit : defaultGasLimit(normalizedData);
18092
+ const gasLimit = call2.gasLimit ?? 0n;
18097
18093
  return {
18098
18094
  target: normalizedTarget,
18099
18095
  data: normalizedData,
@@ -18347,7 +18343,7 @@ async function sendCalls(args) {
18347
18343
  for (let i = 0; i < normalizedCalls.length && i < precheckQuote.estimatedGasPerCall.length; i++) {
18348
18344
  const estimatedGas = BigInt(precheckQuote.estimatedGasPerCall[i] ?? "0");
18349
18345
  const currentGas = normalizedCalls[i]?.gasLimit ?? 0n;
18350
- if (estimatedGas > currentGas) {
18346
+ if (estimatedGas > 0n) {
18351
18347
  console.log(`[sendCalls] Call #${i}: updating gasLimit from ${currentGas} to ${estimatedGas}`);
18352
18348
  normalizedCalls[i].gasLimit = estimatedGas;
18353
18349
  }