Skip to content

Commit

Permalink
Merge pull request #2603 from tallycash/update-alchemy-pending-tx-method
Browse files Browse the repository at this point in the history
  • Loading branch information
hyphenized authored Nov 14, 2022
2 parents 26f069f + 85ea411 commit 3e79a64
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions background/services/chain/serial-fallback-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ export default class SerialFallbackProvider extends JsonRpcProvider {
}

/**
* Attempts to subscribe to full pending transactions in an Alchemy-specific
* Attempts to subscribe to pending transactions in an Alchemy-specific
* way. Returns `subscribed` if the subscription succeeded, or `unsupported`
* if the underlying provider did not support Alchemy-specific subscriptions.
*/
Expand All @@ -655,7 +655,10 @@ export default class SerialFallbackProvider extends JsonRpcProvider {
try {
await this.subscribe(
"filteredNewFullPendingTransactionsSubscriptionID",
["alchemy_filteredNewFullPendingTransactions", { address }],
[
"alchemy_pendingTransactions",
{ fromAddress: address, toAddress: address },
],
async (result: unknown) => {
// TODO use proper provider string
// handle incoming transactions for an account
Expand Down

0 comments on commit 3e79a64

Please sign in to comment.