From 3748c2a1aa85d4b443e042a1dbfadcc9a197b26b Mon Sep 17 00:00:00 2001 From: Mikko Ohtamaa Date: Fri, 22 Mar 2024 15:50:13 +0100 Subject: [PATCH] Better error message --- eth_defi/abi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth_defi/abi.py b/eth_defi/abi.py index 9809cdb1..5d8e2a32 100644 --- a/eth_defi/abi.py +++ b/eth_defi/abi.py @@ -193,7 +193,7 @@ def get_deployed_contract( :return: `web3.contract.Contract` proxy """ - assert address + assert address, f"get_deployed_contract() address was None" address = Web3.to_checksum_address(address)