Skip to content

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