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(core): fixes isTransactionArray utility function #190

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

drichar
Copy link
Collaborator

@drichar drichar commented Jun 20, 2024

In a controlled test environment using instanceof to verify a transaction is of type algosdk.Transaction works, but in a production setting a more "low tech" type guard is necessary.

Now the items (either a normal transaction object or encoded transaction) are checked for a genesisID property, which confirms it is an unencoded object.

In a controlled test environment using `instanceof` to verify a transaction is of type `algosdk.Transaction` works, but in a production setting a more "low tech" type guard is necessary.

Now the items (either a normal transaction object or encoded transaction) are checked for a `genesisID` property, which confirms it is an unencoded object.
@drichar drichar added the v3 label Jun 20, 2024
@drichar drichar added this to the v3.0.0 stable release milestone Jun 20, 2024
@drichar drichar merged commit 0e119ea into v3 Jun 20, 2024
1 check passed
@drichar drichar deleted the fix/transaction-type-guard-function branch June 20, 2024 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant