3535)
3636from web3 .exceptions import (
3737 BlockNotFound ,
38+ ContractLogicError ,
3839 InvalidAddress ,
3940 NameNotFound ,
40- SolidityError ,
4141 TransactionNotFound ,
4242)
4343from web3 .types import ( # noqa: F401
@@ -767,7 +767,8 @@ def test_eth_call_revert_with_msg(
767767 revert_contract : "Contract" ,
768768 unlocked_account : ChecksumAddress ,
769769 ) -> None :
770- with pytest .raises (SolidityError , match = 'execution reverted: Function has been reverted' ):
770+ with pytest .raises (ContractLogicError ,
771+ match = 'execution reverted: Function has been reverted' ):
771772 txn_params = revert_contract ._prepare_transaction (
772773 fn_name = "revertWithMessage" ,
773774 transaction = {
@@ -783,7 +784,7 @@ def test_eth_call_revert_without_msg(
783784 revert_contract : "Contract" ,
784785 unlocked_account : ChecksumAddress ,
785786 ) -> None :
786- with pytest .raises (SolidityError , match = "execution reverted" ):
787+ with pytest .raises (ContractLogicError , match = "execution reverted" ):
787788 txn_params = revert_contract ._prepare_transaction (
788789 fn_name = "revertWithoutMessage" ,
789790 transaction = {
@@ -799,7 +800,8 @@ def test_eth_estimateGas_revert_with_msg(
799800 revert_contract : "Contract" ,
800801 unlocked_account : ChecksumAddress ,
801802 ) -> None :
802- with pytest .raises (SolidityError , match = 'execution reverted: Function has been reverted' ):
803+ with pytest .raises (ContractLogicError ,
804+ match = 'execution reverted: Function has been reverted' ):
803805 txn_params = revert_contract ._prepare_transaction (
804806 fn_name = "revertWithMessage" ,
805807 transaction = {
@@ -815,7 +817,7 @@ def test_eth_estimateGas_revert_without_msg(
815817 revert_contract : "Contract" ,
816818 unlocked_account : ChecksumAddress ,
817819 ) -> None :
818- with pytest .raises (SolidityError , match = "execution reverted" ):
820+ with pytest .raises (ContractLogicError , match = "execution reverted" ):
819821 txn_params = revert_contract ._prepare_transaction (
820822 fn_name = "revertWithoutMessage" ,
821823 transaction = {
0 commit comments