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

Update condition when creating a transaction: single vs batch #101

Closed
germartinez opened this issue Nov 11, 2021 · 0 comments · Fixed by #106
Closed

Update condition when creating a transaction: single vs batch #101

germartinez opened this issue Nov 11, 2021 · 0 comments · Fixed by #106
Assignees

Comments

@germartinez
Copy link
Member

Description

Update the condition inside createTransaction(...) that decides if the SDK will send a single or a batch transaction.
When passing an array of transaction as a parameter, take into account:

  • If the length of the array is 0
  • If the length of the array is 1 -> create single transaction

Check: https://gist.github.com/cmdzro/0547725ca6faa2067e7edf3c70b697f1#gistcomment-3954987

@germartinez germartinez self-assigned this Nov 11, 2021
@germartinez germartinez linked a pull request Nov 17, 2021 that will close this issue
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 a pull request may close this issue.

1 participant