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

Fix Transaction constructor handling of arrays #279

Merged
merged 1 commit into from
Feb 10, 2021
Merged

Conversation

jasonpaulos
Copy link
Contributor

Improve the handling of arrays in the Transaction constructor:

  • Input arrays (specifically appAccounts) are no longer modified.
  • All arrays are copied (using map or slice) to avoid modification by the caller after creation.
  • Additional type checking was added to verify arguments are arrays.

Fixes #273.

@jasonpaulos jasonpaulos merged commit 26efae2 into develop Feb 10, 2021
@jasonpaulos jasonpaulos deleted the jason/txn-input branch February 10, 2021 18:17
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.

Transaction constructor modifies input arrays
2 participants