Skip to content

Commit

Permalink
fix: filename can be Path (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper authored Dec 27, 2024
1 parent f2c883b commit bddb707
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion boa/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bddb707

Please sign in to comment.