@volr/react 0.1.25 → 0.1.27

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
@@ -10152,10 +10152,10 @@ function validateCalls(calls, config = {}) {
10152
10152
  }
10153
10153
  for (const call2 of calls) {
10154
10154
  validateCallValue(call2.value);
10155
- if (call2.gasLimit <= 0n) {
10156
- throw new Error("call.gasLimit must be > 0");
10155
+ if (call2.gasLimit < 0n) {
10156
+ throw new Error("call.gasLimit must be >= 0");
10157
10157
  }
10158
- if (call2.gasLimit > maxGasLimit) {
10158
+ if (call2.gasLimit > 0n && call2.gasLimit > maxGasLimit) {
10159
10159
  throw new Error(`call.gasLimit (${call2.gasLimit}) exceeds maximum (${maxGasLimit})`);
10160
10160
  }
10161
10161
  const dataBytes = call2.data.startsWith("0x") ? (call2.data.length - 2) / 2 : call2.data.length / 2;