@algorandfoundation/algokit-utils 8.1.1-beta.2 → 8.2.0-beta.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/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "**"
7
7
  ],
8
8
  "name": "@algorandfoundation/algokit-utils",
9
- "version": "8.1.1-beta.2",
9
+ "version": "8.2.0-beta.2",
10
10
  "private": false,
11
11
  "description": "A set of core Algorand utilities written in TypeScript and released via npm that make it easier to build solutions on Algorand.",
12
12
  "author": "Algorand Foundation",
@@ -457,7 +457,7 @@ export declare class AppClient {
457
457
  clearStateProgram: string | Uint8Array;
458
458
  schema?: {
459
459
  globalInts: number;
460
- globalByteSlices: number; /** Whether or not to ignore the `AppDeployer` lookup cache and force an on-chain lookup, default: use any cached value */
460
+ globalByteSlices: number;
461
461
  localInts: number;
462
462
  localByteSlices: number;
463
463
  } | undefined;
@@ -539,6 +539,9 @@ class AppClient {
539
539
  const m = types_appArc56.getArc56Method(methodNameOrSignature, this._appSpec);
540
540
  return await Promise.all(args?.map(async (a, i) => {
541
541
  const arg = m.args[i];
542
+ if (!arg) {
543
+ throw new Error(`Unexpected arg at position ${i}. ${m.name} only expects ${m.args.length} args`);
544
+ }
542
545
  if (a !== undefined) {
543
546
  // If a struct then convert to tuple for the underlying call
544
547
  return arg.struct && typeof a === 'object' && !Array.isArray(a)