starknet 7.6.1 → 7.6.2

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.js CHANGED
@@ -10711,7 +10711,7 @@ var Contract = class {
10711
10711
  return this.callData.parse(method, it);
10712
10712
  });
10713
10713
  }
10714
- invoke(method, args = [], { parseRequest = true, maxFee, nonce, signature } = {}) {
10714
+ invoke(method, args = [], { parseRequest = true, signature, ...RestInvokeOptions } = {}) {
10715
10715
  assert(this.address !== null, "contract is not connected to an address");
10716
10716
  const calldata = getCalldata(args, () => {
10717
10717
  if (parseRequest) {
@@ -10728,11 +10728,11 @@ var Contract = class {
10728
10728
  };
10729
10729
  if ("execute" in this.providerOrAccount) {
10730
10730
  return this.providerOrAccount.execute(invocation, {
10731
- maxFee,
10732
- nonce
10731
+ ...RestInvokeOptions
10733
10732
  });
10734
10733
  }
10735
- if (!nonce) throw new Error(`Nonce is required when invoking a function without an account`);
10734
+ if (!RestInvokeOptions.nonce)
10735
+ throw new Error(`Nonce is required when invoking a function without an account`);
10736
10736
  logger.warn(`Invoking ${method} without an account. This will not work on a public node.`);
10737
10737
  return this.providerOrAccount.invokeFunction(
10738
10738
  {
@@ -10740,7 +10740,8 @@ var Contract = class {
10740
10740
  signature
10741
10741
  },
10742
10742
  {
10743
- nonce
10743
+ ...RestInvokeOptions,
10744
+ nonce: RestInvokeOptions.nonce
10744
10745
  }
10745
10746
  );
10746
10747
  }