Skip to content

Commit

Permalink
Hotfix to call to preview when transaction fails (#1297)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheng Lundquist authored Jan 30, 2024
1 parent 8979319 commit 5c3e927
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/ethpy/ethpy/base/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,9 @@ async def async_smart_contract_transact(
orig_exception: list[Exception] = [err]
try:
smart_contract_preview_transaction(
contract=contract,
signer_address=signer.address,
function_name_or_signature=function_name_or_signature,
contract,
signer.address,
function_name_or_signature,
*fn_args,
block_number=BlockNumber(block_number),
read_retry_count=1, # No retries for this preview
Expand Down Expand Up @@ -697,9 +697,9 @@ def smart_contract_transact(
orig_exception: list[Exception] = [err]
try:
smart_contract_preview_transaction(
contract=contract,
signer_address=signer.address,
function_name_or_signature=function_name_or_signature,
contract,
signer.address,
function_name_or_signature,
*fn_args,
block_number=BlockNumber(block_number),
read_retry_count=1, # No retries for this preview
Expand Down

0 comments on commit 5c3e927

Please sign in to comment.