Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

fix: searchTransactionMetadata is not a function #303

Merged
merged 1 commit into from
Aug 29, 2021
Merged

Conversation

shuplenkov
Copy link
Member

Issue being fixed or feature implemented

TypeError: this.storage.searchTransactionMetadata is not a function

What was done?

Fixed error

How Has This Been Tested?

Tests

Breaking Changes

No

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@shuplenkov shuplenkov added this to the v0.21.0 milestone Aug 23, 2021
Copy link
Member

@shumkov shumkov left a comment

Choose a reason for hiding this comment

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

👍

@Alex-Werner Alex-Werner merged commit b538a06 into v0.21-dev Aug 29, 2021
@Alex-Werner Alex-Werner deleted the fix-storage branch August 29, 2021 23:33
Alex-Werner added a commit that referenced this pull request Sep 6, 2021
* feat: added TransactionMetadataNotInStore error

* feat(Storage): added TransactionMetadata import and store

* fix(Account): getTransaction to ensure tx before adding it

* feat(DAPIClientTransport)!: getTransaction return transaction and meta

* feat(Storage): addedd getTransactionMetadata & searchTransactionMetadata

* feat: allow transaction with metadata to be stored in bulk

* feat(Account)!: getTransaction returns metadata when able

* feat(TransactionSyncStreamWorker): sync transaction with metadata

* fix: merge conflict artifact

* fix: getTransaction correctly add metadata if not in store

* test: updated tests

* fix: disable promise executor as need async

* doc: updated documentation & ts specs

* test: update integration test

* feat: implements extendTransactionsWithMetadata utils

* feat: implements categorizeTransactions utils

* feat: implements filterTransactions util method

* feat: move utils to single file

Will help for testing and managing properly

* feat: ensure we retrieve the tx inclusion blockheader too

* feat(account): re-enable and clean-up getTransactionHistory

* doc: describe getTransactionHistory returned types

* test: provide utils coverage

* feat: categorizedTransaction added from & to props

* test(filterTransactions): added test

* test(extendTx): added tests

* feat: categorizeTransaction to classify otherAccountAddresses

* feat: categorizeTransactions tests + correct type categorization

* feat: getTransactionHistory to return expected output

* docs: provide documentation

* fix: only import blockHeader when existing

* feat: provide filter for misc address

* feat: provide classifyAddresses for privatekey based account

* doc: updated TransactionHistory types

* test: fix transaction hash

* test: fixed utils tests

* feat: calculateTransactionFees warning on missing input's output

* fix: syncing not waiting for last transaction response

* test: provide getTransactionHistory tests

* doc: fix lint

* test: fix wrong hash in getTx

* test: update test with correct block hash

* fix: searchTransactionMetadata is not a function (#303)

* fix: apply recommended fixes

Co-authored-by: Konstantin Shuplenkov <konstantin.shuplenkov@dash.org>
Alex-Werner added a commit that referenced this pull request Sep 28, 2021
* feat: added TransactionMetadataNotInStore error

* feat(Storage): added TransactionMetadata import and store

* fix(Account): getTransaction to ensure tx before adding it

* feat(DAPIClientTransport)!: getTransaction return transaction and meta

* feat(Storage): addedd getTransactionMetadata & searchTransactionMetadata

* feat: allow transaction with metadata to be stored in bulk

* feat(Account)!: getTransaction returns metadata when able

* feat(TransactionSyncStreamWorker): sync transaction with metadata

* fix: merge conflict artifact

* fix: getTransaction correctly add metadata if not in store

* test: updated tests

* fix: disable promise executor as need async

* doc: updated documentation & ts specs

* test: update integration test

* feat: implements extendTransactionsWithMetadata utils

* feat: implements categorizeTransactions utils

* feat: implements filterTransactions util method

* feat: move utils to single file

Will help for testing and managing properly

* feat: ensure we retrieve the tx inclusion blockheader too

* feat(account): re-enable and clean-up getTransactionHistory

* doc: describe getTransactionHistory returned types

* test: provide utils coverage

* feat: categorizedTransaction added from & to props

* test(filterTransactions): added test

* test(extendTx): added tests

* feat: categorizeTransaction to classify otherAccountAddresses

* feat: categorizeTransactions tests + correct type categorization

* feat: getTransactionHistory to return expected output

* docs: provide documentation

* fix: only import blockHeader when existing

* feat: provide filter for misc address

* feat: provide classifyAddresses for privatekey based account

* doc: updated TransactionHistory types

* test: fix transaction hash

* test: fixed utils tests

* feat: calculateTransactionFees warning on missing input's output

* fix: syncing not waiting for last transaction response

* test: provide getTransactionHistory tests

* doc: fix lint

* test: fix wrong hash in getTx

* test: update test with correct block hash

* fix: searchTransactionMetadata is not a function (#303)

* feat(subscribeToBlocks): announce blockheight

* feat: add retry policy for unconfirmed transaction from stream

* feat: use blockheight instead of setTimeout

* feat: retry fetching transaction at next lock if unconfirmed

* feat(importTransaction): replace previous metadata on import

* doc: added event and plugin accessing listener doc

* fix: import transaction handling on height is zero

* style: update from review

Co-authored-by: Konstantin Shuplenkov <konstantin.shuplenkov@dash.org>
shuplenkov pushed a commit that referenced this pull request Oct 25, 2021
* feat: added TransactionMetadataNotInStore error

* feat(Storage): added TransactionMetadata import and store

* fix(Account): getTransaction to ensure tx before adding it

* feat(DAPIClientTransport)!: getTransaction return transaction and meta

* feat(Storage): addedd getTransactionMetadata & searchTransactionMetadata

* feat: allow transaction with metadata to be stored in bulk

* feat(Account)!: getTransaction returns metadata when able

* feat(TransactionSyncStreamWorker): sync transaction with metadata

* fix: merge conflict artifact

* fix: getTransaction correctly add metadata if not in store

* test: updated tests

* fix: disable promise executor as need async

* doc: updated documentation & ts specs

* test: update integration test

* feat: implements extendTransactionsWithMetadata utils

* feat: implements categorizeTransactions utils

* feat: implements filterTransactions util method

* feat: move utils to single file

Will help for testing and managing properly

* feat: ensure we retrieve the tx inclusion blockheader too

* feat(account): re-enable and clean-up getTransactionHistory

* doc: describe getTransactionHistory returned types

* test: provide utils coverage

* feat: categorizedTransaction added from & to props

* test(filterTransactions): added test

* test(extendTx): added tests

* feat: categorizeTransaction to classify otherAccountAddresses

* feat: categorizeTransactions tests + correct type categorization

* feat: getTransactionHistory to return expected output

* docs: provide documentation

* fix: only import blockHeader when existing

* feat: provide filter for misc address

* feat: provide classifyAddresses for privatekey based account

* doc: updated TransactionHistory types

* test: fix transaction hash

* test: fixed utils tests

* feat: calculateTransactionFees warning on missing input's output

* fix: syncing not waiting for last transaction response

* test: provide getTransactionHistory tests

* doc: fix lint

* test: fix wrong hash in getTx

* test: update test with correct block hash

* fix: searchTransactionMetadata is not a function (#303)

* fix: apply recommended fixes

Co-authored-by: Konstantin Shuplenkov <konstantin.shuplenkov@dash.org>
shuplenkov pushed a commit that referenced this pull request Oct 25, 2021
* feat: added TransactionMetadataNotInStore error

* feat(Storage): added TransactionMetadata import and store

* fix(Account): getTransaction to ensure tx before adding it

* feat(DAPIClientTransport)!: getTransaction return transaction and meta

* feat(Storage): addedd getTransactionMetadata & searchTransactionMetadata

* feat: allow transaction with metadata to be stored in bulk

* feat(Account)!: getTransaction returns metadata when able

* feat(TransactionSyncStreamWorker): sync transaction with metadata

* fix: merge conflict artifact

* fix: getTransaction correctly add metadata if not in store

* test: updated tests

* fix: disable promise executor as need async

* doc: updated documentation & ts specs

* test: update integration test

* feat: implements extendTransactionsWithMetadata utils

* feat: implements categorizeTransactions utils

* feat: implements filterTransactions util method

* feat: move utils to single file

Will help for testing and managing properly

* feat: ensure we retrieve the tx inclusion blockheader too

* feat(account): re-enable and clean-up getTransactionHistory

* doc: describe getTransactionHistory returned types

* test: provide utils coverage

* feat: categorizedTransaction added from & to props

* test(filterTransactions): added test

* test(extendTx): added tests

* feat: categorizeTransaction to classify otherAccountAddresses

* feat: categorizeTransactions tests + correct type categorization

* feat: getTransactionHistory to return expected output

* docs: provide documentation

* fix: only import blockHeader when existing

* feat: provide filter for misc address

* feat: provide classifyAddresses for privatekey based account

* doc: updated TransactionHistory types

* test: fix transaction hash

* test: fixed utils tests

* feat: calculateTransactionFees warning on missing input's output

* fix: syncing not waiting for last transaction response

* test: provide getTransactionHistory tests

* doc: fix lint

* test: fix wrong hash in getTx

* test: update test with correct block hash

* fix: searchTransactionMetadata is not a function (#303)

* feat(subscribeToBlocks): announce blockheight

* feat: add retry policy for unconfirmed transaction from stream

* feat: use blockheight instead of setTimeout

* feat: retry fetching transaction at next lock if unconfirmed

* feat(importTransaction): replace previous metadata on import

* doc: added event and plugin accessing listener doc

* fix: import transaction handling on height is zero

* style: update from review

Co-authored-by: Konstantin Shuplenkov <konstantin.shuplenkov@dash.org>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants