Skip to content

Commit

Permalink
block sub encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
ruiqic committed Apr 17, 2024
1 parent 4d8be0a commit 93831ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solana/rpc/websocket_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

from solana.rpc import types
from solana.rpc.commitment import Commitment
from solana.rpc.core import _ACCOUNT_ENCODING_TO_SOLDERS, _COMMITMENT_TO_SOLDERS
from solana.rpc.core import _ACCOUNT_ENCODING_TO_SOLDERS, _COMMITMENT_TO_SOLDERS, _TX_ENCODING_TO_SOLDERS


class SubscriptionError(Exception):
Expand Down Expand Up @@ -204,7 +204,7 @@ async def block_subscribe(
"""
req_id = self.increment_counter_and_get_id()
commitment_to_use = None if commitment is None else _COMMITMENT_TO_SOLDERS[commitment]
encoding_to_use = None if encoding is None else _ACCOUNT_ENCODING_TO_SOLDERS[encoding]
encoding_to_use = None if encoding is None else _TX_ENCODING_TO_SOLDERS[encoding]
config = RpcBlockSubscribeConfig(
commitment=commitment_to_use,
encoding=encoding_to_use,
Expand Down

0 comments on commit 93831ba

Please sign in to comment.