3535)
3636from web3 .exceptions import (
3737 BlockNotFound ,
38+ ContractLogicError ,
3839 InvalidAddress ,
3940 NameNotFound ,
40- RevertTransaction ,
4141 TransactionNotFound ,
4242)
4343from web3 .types import ( # noqa: F401
@@ -760,7 +760,7 @@ def test_eth_call_revert_with_msg(
760760 revert_contract : "Contract" ,
761761 unlocked_account : ChecksumAddress ,
762762 ) -> None :
763- with pytest .raises (RevertTransaction ,
763+ with pytest .raises (ContractLogicError ,
764764 match = 'execution reverted: Function has been reverted' ):
765765 txn_params = revert_contract ._prepare_transaction (
766766 fn_name = "revertWithMessage" ,
@@ -777,7 +777,7 @@ def test_eth_call_revert_without_msg(
777777 revert_contract : "Contract" ,
778778 unlocked_account : ChecksumAddress ,
779779 ) -> None :
780- with pytest .raises (RevertTransaction , match = "execution reverted" ):
780+ with pytest .raises (ContractLogicError , match = "execution reverted" ):
781781 txn_params = revert_contract ._prepare_transaction (
782782 fn_name = "revertWithoutMessage" ,
783783 transaction = {
@@ -793,7 +793,7 @@ def test_eth_estimateGas_revert_with_msg(
793793 revert_contract : "Contract" ,
794794 unlocked_account : ChecksumAddress ,
795795 ) -> None :
796- with pytest .raises (RevertTransaction ,
796+ with pytest .raises (ContractLogicError ,
797797 match = 'execution reverted: Function has been reverted' ):
798798 txn_params = revert_contract ._prepare_transaction (
799799 fn_name = "revertWithMessage" ,
@@ -810,7 +810,7 @@ def test_eth_estimateGas_revert_without_msg(
810810 revert_contract : "Contract" ,
811811 unlocked_account : ChecksumAddress ,
812812 ) -> None :
813- with pytest .raises (RevertTransaction , match = "execution reverted" ):
813+ with pytest .raises (ContractLogicError , match = "execution reverted" ):
814814 txn_params = revert_contract ._prepare_transaction (
815815 fn_name = "revertWithoutMessage" ,
816816 transaction = {
0 commit comments