Skip to content

Conversation

@neilcampbell
Copy link
Contributor

@neilcampbell neilcampbell commented Jun 26, 2025

Fixes #455

When trying to load an application that has been deleted, the following error is returned "Error: Application failed to load". This is due to the algosdk@3 indexer client not handling the null approval and clear program which is returned when the application is deleted.

This PR monkey patches algosdk to convert any null or undefined bytes value it encounters when deserialising JSON into empty bytes value.

An upstream PR to algosdk has been created algorand/js-algorand-sdk#991

@neilcampbell neilcampbell requested a review from lempira June 26, 2025 15:23
Copy link
Contributor

@lempira lempira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL 💡 - the patching system

@neilcampbell
Copy link
Contributor Author

TIL 💡 - the patching system

@lempira Yeah patch-package is so useful.

@neilcampbell neilcampbell merged commit 990ce5e into main Jun 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deleted application fail to load

3 participants