diff --git a/boa/network.py b/boa/network.py index 856bcd58..44adcb71 100644 --- a/boa/network.py +++ b/boa/network.py @@ -403,7 +403,9 @@ def deploy( if (deployments_db := get_deployments_db()) is not None: contract_name = getattr(contract, "contract_name", None) - filename = getattr(contract, "filename", None) + if (filename := getattr(contract, "filename", None)) is not None: + filename = str(filename) + try: source_bundle = get_verification_bundle(contract) except Exception as e: