-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from algorandfoundation/trace-in-error
feat(transaction): Adding dryrun traces to error to give more control
- Loading branch information
Showing
8 changed files
with
113 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`application-client Errors Display nice error messages when there is a logic error 3`] = ` | ||
exports[`application-client Errors Display nice error messages when there is a logic error 4`] = ` | ||
"INFO: Idempotently deploying app "TestingApp" from creator ACCOUNT_1 using 932 bytes of teal code and 4 bytes of teal code | ||
INFO: App TestingApp not found in apps created by ACCOUNT_1; deploying app with version 1.0. | ||
INFO: Sent transaction ID TXID_1 appl from ACCOUNT_1 | ||
DEBUG: Created app APP_1 from creator ACCOUNT_1 | ||
DEBUG: Received error executing Atomic Transaction Composer and debug flag enabled; attempting dry run to get more information | ||
ERROR: Received the following application error when executing dry run of transaction | [{"trace":"pc# |ln# |source |scratch |stack\\n1 |1 |intcblock 0 1 10 5 1 1 | |[]\\n9 |2 |bytecblock 0x 0x151f7c75 | |[]\\n17 |3 |txn NumAppArgs | |[]\\n19 |4 |intc_0 // 0 | |[1]\\n20 |5 |== | |[1, 0]\\n21 |6 |bnz label1 | |[0]\\n24 |7 |txna ApplicationArgs 0 | |[]\\n27 |8 |pushbytes 0xf17e80a5 // 0xf17e... | |[0x44d0da0d]\\n33 |9 |== | |[0x44d0da0d, 0xf17e80a5]\\n34 |10 |bnz label2 | |[0]\\n37 |11 |txna ApplicationArgs 0 | |[]\\n40 |12 |pushbytes 0x0a92a81e // 0x0a92... | |[0x44d0da0d]\\n46 |13 |== | |[0x44d0da0d, 0x0a92a81e]\\n47 |14 |bnz label3 | |[0]\\n50 |15 |txna ApplicationArgs 0 | |[]\\n53 |16 |pushbytes 0xa4cf8dea // 0xa4cf... | |[0x44d0da0d]\\n59 |17 |== | |[0x44d0da0d, 0xa4cf8dea]\\n60 |18 |bnz label4 | |[0]\\n63 |19 |txna ApplicationArgs 0 | |[]\\n66 |20 |pushbytes 0xcec2834a // 0xcec2... | |[0x44d0da0d]\\n72 |21 |== | |[0x44d0da0d, 0xcec2834a]\\n73 |22 |bnz label5 | |[0]\\n76 |23 |txna ApplicationArgs 0 | |[]\\n79 |24 |pushbytes 0xa4b4a230 // 0xa4b4... | |[0x44d0da0d]\\n85 |25 |== | |[0x44d0da0d, 0xa4b4a230]\\n86 |26 |bnz label6 | |[0]\\n89 |27 |txna ApplicationArgs 0 | |[]\\n92 |28 |pushbytes 0x44d0da0d // 0x44d0... | |[0x44d0da0d]\\n98 |29 |== | |[0x44d0da0d, 0x44d0da0d]\\n99 |30 |bnz label7 | |[1]\\n246 |115 |txn OnCompletion | |[]\\n248 |116 |intc_0 // 0 | |[0]\\n249 |117 |== | |[0, 0]\\n250 |118 |txn ApplicationID | |[1]\\n252 |119 |intc_0 // 0 | |[1, APP_1]\\n253 |120 |!= | |[1, APP_1, 0]\\n254 |121 |&& | |[1, 1]\\n255 |122 |assert | |[1]\\n256 |123 |callsub label16 | |[]\\n779 |399 |proto 0 0 | |[]\\n782 |400 |intc_0 // 0 | |[]\\n783 |401 |assert | |[0]\\n783 |401 |!! assert failed pc=783 !! | |[0]\\n"}]" | ||
DEBUG: Received error executing Atomic Transaction Composer and debug flag enabled; attempting dry run to get more information" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters