@algorandfoundation/algokit-utils 8.2.0-beta.1 → 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.
@@ -537,6 +537,9 @@ class AppClient {
537
537
  const m = getArc56Method(methodNameOrSignature, this._appSpec);
538
538
  return await Promise.all(args?.map(async (a, i) => {
539
539
  const arg = m.args[i];
540
+ if (!arg) {
541
+ throw new Error(`Unexpected arg at position ${i}. ${m.name} only expects ${m.args.length} args`);
542
+ }
540
543
  if (a !== undefined) {
541
544
  // If a struct then convert to tuple for the underlying call
542
545
  return arg.struct && typeof a === 'object' && !Array.isArray(a)