This repository has been archived by the owner on Jan 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly handle clear state program errors
- Loading branch information
1 parent
d4a1b8b
commit 44a4b75
Showing
11 changed files
with
710 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,180 @@ | ||
{ | ||
"exec-trace-config": { | ||
"enable": true, | ||
"scratch-change": true, | ||
"stack-change": true, | ||
"state-change": true | ||
}, | ||
"initial-states": { | ||
"app-initial-states": [ | ||
{ | ||
"app-globals": { | ||
"kvs": [ | ||
{ | ||
"key": "Y291bnRlcg==", | ||
"value": { | ||
"type": 2, | ||
"uint": 4 | ||
} | ||
} | ||
] | ||
}, | ||
"id": 1001 | ||
} | ||
] | ||
}, | ||
"last-round": 4, | ||
"txn-groups": [ | ||
{ | ||
"app-budget-added": 700, | ||
"app-budget-consumed": 14, | ||
"txn-results": [ | ||
{ | ||
"app-budget-consumed": 14, | ||
"exec-trace": { | ||
"clear-state-program-hash": "ZY8dOBgLGyQoqiQqBH1PSo+dCcJIDpwqLzqLBvNJaNk=", | ||
"clear-state-program-trace": [ | ||
{ | ||
"pc": 1 | ||
}, | ||
{ | ||
"pc": 4, | ||
"stack-additions": [ | ||
{ | ||
"bytes": "Y291bnRlcg==", | ||
"type": 1 | ||
} | ||
] | ||
}, | ||
{ | ||
"pc": 13, | ||
"stack-additions": [ | ||
{ | ||
"bytes": "Y291bnRlcg==", | ||
"type": 1 | ||
}, | ||
{ | ||
"bytes": "Y291bnRlcg==", | ||
"type": 1 | ||
} | ||
], | ||
"stack-pop-count": 1 | ||
}, | ||
{ | ||
"pc": 14, | ||
"stack-additions": [ | ||
{ | ||
"type": 2, | ||
"uint": 4 | ||
} | ||
], | ||
"stack-pop-count": 1 | ||
}, | ||
{ | ||
"pc": 15, | ||
"stack-additions": [ | ||
{ | ||
"type": 2, | ||
"uint": 1 | ||
} | ||
] | ||
}, | ||
{ | ||
"pc": 16, | ||
"stack-additions": [ | ||
{ | ||
"type": 2, | ||
"uint": 5 | ||
} | ||
], | ||
"stack-pop-count": 2 | ||
}, | ||
{ | ||
"pc": 17, | ||
"stack-pop-count": 2, | ||
"state-changes": [ | ||
{ | ||
"app-state-type": "g", | ||
"key": "Y291bnRlcg==", | ||
"new-value": { | ||
"type": 2, | ||
"uint": 5 | ||
}, | ||
"operation": "w" | ||
} | ||
] | ||
}, | ||
{ | ||
"pc": 18, | ||
"stack-additions": [ | ||
{ | ||
"type": 2, | ||
"uint": 1001 | ||
} | ||
] | ||
}, | ||
{ | ||
"pc": 20, | ||
"stack-pop-count": 1 | ||
}, | ||
{ | ||
"pc": 23, | ||
"stack-additions": [ | ||
{ | ||
"type": 2, | ||
"uint": 3 | ||
} | ||
] | ||
}, | ||
{ | ||
"pc": 25, | ||
"stack-additions": [ | ||
{ | ||
"type": 2, | ||
"uint": 1 | ||
} | ||
] | ||
}, | ||
{ | ||
"pc": 26, | ||
"stack-additions": [ | ||
{ | ||
"type": 2 | ||
} | ||
], | ||
"stack-pop-count": 2 | ||
}, | ||
{ | ||
"pc": 27, | ||
"stack-pop-count": 1 | ||
}, | ||
{ | ||
"pc": 30 | ||
} | ||
], | ||
"clear-state-rollback": true, | ||
"clear-state-rollback-error": "invalid ApplicationArgs index 0" | ||
}, | ||
"txn-result": { | ||
"pool-error": "", | ||
"txn": { | ||
"sig": "Q0UCQSgS7KBWT+N/xXFELqajmZatiAp4NZgoOJRLoEKRGwUkr0/E7BMOybspT7BIVa0vCpjN0l8O/ePdcs9EAg==", | ||
"txn": { | ||
"apan": 3, | ||
"apid": 1001, | ||
"fee": 1000, | ||
"fv": 4, | ||
"gh": "dsgtQlDfh3EgBWQs+f6G+ZorH4WiY2Vmzu7sGgfcbng=", | ||
"lv": 1004, | ||
"note": "sV/32BiFDlA=", | ||
"snd": "EI4F6GLWBIUTRCC4EJK7TXKY4AEW6DOZNUXYZXYEHBPXNFJU53REVFPI34", | ||
"type": "appl" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"version": 2 | ||
} |
Oops, something went wrong.