Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Properly handle failing clear state programs#20

Merged
jasonpaulos merged 3 commits intomainfrom
clear-state-error-handling
Jan 4, 2024
Merged

Properly handle failing clear state programs#20
jasonpaulos merged 3 commits intomainfrom
clear-state-error-handling

Conversation

@jasonpaulos
Copy link
Copy Markdown
Contributor

Use the new fields introduced in algorand/go-algorand#5842 to properly handle failing clear state programs.

This introduces two behavior changes:

  • The debugger will show an error if a clear state program rejects or errors. This error does not cause the transaction to fail, and it can be stepped over by the debugger.
  • Clear state programs will have their app state changes rolled back if they fail. However, the debugger had no way of knowing if this happened prior to this PR. Now it will properly roll back state.

@jasonpaulos jasonpaulos merged commit b0e025c into main Jan 4, 2024
@jasonpaulos jasonpaulos deleted the clear-state-error-handling branch January 4, 2024 21:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant