@algorandfoundation/algokit-utils 8.0.3 → 8.1.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/testing/fixtures/algorand-fixture.d.ts +19 -19
- package/testing/fixtures/algorand-fixture.js +7 -5
- package/testing/fixtures/algorand-fixture.js.map +1 -1
- package/testing/fixtures/algorand-fixture.mjs +7 -5
- package/testing/fixtures/algorand-fixture.mjs.map +1 -1
- package/testing/transaction-logger.js +4 -1
- package/testing/transaction-logger.js.map +1 -1
- package/testing/transaction-logger.mjs +4 -1
- package/testing/transaction-logger.mjs.map +1 -1
- package/types/app-client.js +10 -1
- package/types/app-client.js.map +1 -1
- package/types/app-client.mjs +10 -1
- package/types/app-client.mjs.map +1 -1
- package/types/testing.d.ts +46 -2
package/types/app-client.mjs
CHANGED
|
@@ -854,7 +854,16 @@ class AppClient {
|
|
|
854
854
|
return await call();
|
|
855
855
|
}
|
|
856
856
|
catch (e) {
|
|
857
|
-
|
|
857
|
+
const logicError = await this.exposeLogicError(e);
|
|
858
|
+
if (logicError instanceof LogicError) {
|
|
859
|
+
let currentLine = logicError.teal_line - logicError.lines - 1;
|
|
860
|
+
const stackWithLines = logicError.stack
|
|
861
|
+
?.split('\n')
|
|
862
|
+
.map((line) => `${(currentLine += 1)}: ${line}`)
|
|
863
|
+
.join('\n');
|
|
864
|
+
Config.logger.error(`${logicError.message}\n\n${stackWithLines}`);
|
|
865
|
+
}
|
|
866
|
+
throw logicError;
|
|
858
867
|
}
|
|
859
868
|
}
|
|
860
869
|
getBoxMethods() {
|