Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Algod: Fix issue with nil accounts in local-deltas array #3790

Merged
merged 3 commits into from
Apr 2, 2022

Conversation

barnjamin
Copy link
Contributor

This is the second issue with making a slice of a given length but then appending to it instead of setting elements by index.

We probably should look through to see where/if this is done elsewhere.

Result of this bug prior to the fix, note txns[0]['local-deltas'][0] here:
https://raw.githubusercontent.com/algorand/algorand-sdk-testing/131b0d90f5a1c4c93b43b7f5b4126c568dc29613/features/resources/v2algodclient_responsejsons/largeDryrunResponse.json

@barnjamin barnjamin added bug Something isn't working Bug-Fix labels Mar 17, 2022
jannotti
jannotti previously approved these changes Mar 17, 2022
Copy link
Contributor

@jannotti jannotti left a comment

Choose a reason for hiding this comment

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

This looks like it's clearly the right fix. Can we add a unit test to make sure this never regresses?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Bug-Fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants