Skip to content

Commit

Permalink
fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
guoruyuan committed Jan 7, 2022
1 parent 65bec99 commit c94dd77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/solana/rpc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,11 @@ def _request_airdrop_args(

def _send_raw_transaction_args(
self, txn: Union[bytes, str], opts: types.TxOpts
) -> Tuple[types.RPCMethod, str, Dict[str, Union[bool, Commitment, str]]]:
) -> Tuple[types.RPCMethod, str, Dict[str, Union[bool, Commitment, str, int]]]:

if isinstance(txn, bytes):
txn = b64encode(txn).decode("utf-8")
params = {
params: Dict[str, Union[bool, Commitment, str, int]] = {
self._skip_preflight_key: opts.skip_preflight,
self._preflight_comm_key: opts.preflight_commitment,
self._encoding_key: "base64",
Expand Down
2 changes: 1 addition & 1 deletion src/solana/rpc/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class TxOpts(NamedTuple):
"""If true, skip the preflight transaction checks."""
preflight_commitment: Commitment = Finalized
"""Commitment level to use for preflight."""
max_retries: int = None
max_retries: Optional[int] = None
"""Maximum number of times for the RPC node to retry sending the transaction to the leader.
If this parameter not provided, the RPC node will retry the transaction until it is finalized
or until the blockhash expires
Expand Down

0 comments on commit c94dd77

Please sign in to comment.