@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.
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"**"
|
|
7
7
|
],
|
|
8
8
|
"name": "@algorandfoundation/algokit-utils",
|
|
9
|
-
"version": "8.2.0-beta.
|
|
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",
|
package/types/app-client.js
CHANGED
|
@@ -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)
|