feat: logic error logging #833
Annotations
2 errors and 1 warning
Test:
src/types/app-factory-and-client.spec.ts#L536
Error: Snapshot `ARC32: app-factory-and-app-client > Errors > Display nice error messages when there is a logic error 2` mismatched
- Expected
+ Received
"INFO: Idempotently deploying app "TestingApp" from creator ACCOUNT_1 using 1498 bytes of AVM bytecode and 4 bytes of AVM bytecode
INFO: App TestingApp not found in apps created by ACCOUNT_1; deploying app with version 1.0.
VERBOSE: Sent transaction ID TXID_1 appl from ACCOUNT_1
DEBUG: App created by ACCOUNT_1 with ID APP_1 via transaction TXID_1
- ERROR: Received error executing Atomic Transaction Composer and debug flag enabled; attempting simulation to get more information | [{"cause":{"response":{"text":"{\"data\":{\"app-index\":APP_1,\"eval-states\":[{\"stack\":[0]}],\"group-index\":0,\"pc\":885},\"message\":\"TransactionPool.Remember: transaction TXID_2: logic eval error: assert failed pc=885. Details: app=APP_1, pc=885, opcodes=proto 0 0; intc_0 // 0; assert\"}\n","format":"application/json","status":400,"ok":false},"name":"URLTokenBaseHTTPError","status":400},"response":{"text":"{\"data\":{\"app-index\":APP_1,\"eval-states\":[{\"stack\":[0]}],\"group-index\":0,\"pc\":885},\"message\":\"TransactionPool.Remember: transaction TXID_2: logic eval error: assert failed pc=885. Details: app=APP_1, pc=885, opcodes=proto 0 0; intc_0 // 0; assert\"}\n","format":"application/json","status":400,"ok":false},"name":"URLTokenBaseHTTPError","traces":[]}]"
+ ERROR: Received error executing Atomic Transaction Composer and debug flag enabled; attempting simulation to get more information | [{"cause":{"response":{"text":"{\"data\":{\"app-index\":APP_1,\"eval-states\":[{\"stack\":[0]}],\"group-index\":0,\"pc\":885},\"message\":\"TransactionPool.Remember: transaction TXID_2: logic eval error: assert failed pc=885. Details: app=APP_1, pc=885, opcodes=proto 0 0; intc_0 // 0; assert\"}\n","format":"application/json","status":400,"ok":false},"name":"URLTokenBaseHTTPError","status":400},"response":{"text":"{\"data\":{\"app-index\":APP_1,\"eval-states\":[{\"stack\":[0]}],\"group-index\":0,\"pc\":885},\"message\":\"TransactionPool.Remember: transaction TXID_2: logic eval error: assert failed pc=885. Details: app=APP_1, pc=885, opcodes=proto 0 0; intc_0 // 0; assert\"}\n","format":"application/json","status":400,"ok":false},"name":"URLTokenBaseHTTPError","traces":[]}]
+ ERROR: assert failed pc=885. at:469. Network request error. Received status 400 (Bad Request): TransactionPool.Remember: transaction TXID_2: logic eval error: assert failed pc=885. Details: app=APP_1, pc=885, opcodes=proto 0 0; intc_0 // 0; assert
+
+ 464: // error
+ 465: error_7:
+ 466: proto 0 0
+ 467: intc_0 // 0
+ 468: // Deliberate error
+ 469: assert <--- Error
+ 470: retsub
+ 471:
+ 472: // create
+ 473: create_8:"
❯ src/types/app-factory-and-client.spec.ts:536:11
|
Test
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading