@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 +1 -1
- package/types/app-client.d.ts +1 -1
- package/types/app-client.js +3 -0
- package/types/app-client.js.map +1 -1
- package/types/app-client.mjs +3 -0
- package/types/app-client.mjs.map +1 -1
- package/types/app-deployer.js +11 -4
- package/types/app-deployer.js.map +1 -1
- package/types/app-deployer.mjs +11 -4
- package/types/app-deployer.mjs.map +1 -1
- package/types/composer.js +2 -7
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +3 -8
- package/types/composer.mjs.map +1 -1
- package/util.d.ts +2 -0
- package/util.js +7 -0
- package/util.js.map +1 -1
- package/util.mjs +7 -1
- package/util.mjs.map +1 -1
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"**"
|
|
7
7
|
],
|
|
8
8
|
"name": "@algorandfoundation/algokit-utils",
|
|
9
|
-
"version": "8.
|
|
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.d.ts
CHANGED
|
@@ -457,7 +457,7 @@ export declare class AppClient {
|
|
|
457
457
|
clearStateProgram: string | Uint8Array;
|
|
458
458
|
schema?: {
|
|
459
459
|
globalInts: number;
|
|
460
|
-
globalByteSlices: number;
|
|
460
|
+
globalByteSlices: number;
|
|
461
461
|
localInts: number;
|
|
462
462
|
localByteSlices: number;
|
|
463
463
|
} | undefined;
|
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)
|