File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1035,7 +1035,7 @@ def send_transaction(
1035
1035
if recent_blockhash is not None :
1036
1036
msg = "recent_blockhash arg is not used when sending VersionedTransaction."
1037
1037
raise ValueError (msg )
1038
- versioned_tx_opts = types .TxOpts (preflight_commitment = self ._commitment )
1038
+ versioned_tx_opts = types .TxOpts (preflight_commitment = self ._commitment ) if opts is None else opts
1039
1039
return self .send_raw_transaction (bytes (txn ), opts = versioned_tx_opts )
1040
1040
last_valid_block_height = None
1041
1041
if recent_blockhash is None :
Original file line number Diff line number Diff line change @@ -1046,7 +1046,7 @@ async def send_transaction(
1046
1046
if recent_blockhash is not None :
1047
1047
msg = "recent_blockhash arg is not used when sending VersionedTransaction."
1048
1048
raise ValueError (msg )
1049
- versioned_tx_opts = types .TxOpts (preflight_commitment = self ._commitment )
1049
+ versioned_tx_opts = types .TxOpts (preflight_commitment = self ._commitment ) if opts is None else opts
1050
1050
return await self .send_raw_transaction (bytes (txn ), opts = versioned_tx_opts )
1051
1051
last_valid_block_height = None
1052
1052
if recent_blockhash is None :
You can’t perform that action at this time.
0 commit comments