Skip to content

Commit

Permalink
feat: added filename to DB to match boa
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickAlphaC committed Nov 22, 2024
1 parent 028cd47 commit 2b70226
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions boa_zksync/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ def to_deployment(
rpc: str,
):
contract_name = getattr(contract, "contract_name", None)
if (filename := getattr(contract, "filename", None)) is not None:
filename = str(filename) # can be Path sometimes
try:
source_bundle = get_verification_bundle(contract)
except Exception as e:
Expand All @@ -216,6 +218,7 @@ def to_deployment(
return Deployment(
contract_address=create_address,
contract_name=contract_name,
filename=filename,
rpc=rpc,
deployer=Address(self.sender),
tx_hash=receipt["transactionHash"],
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ classifiers = [
]

dependencies = [
"titanoboa>=0.2.5b1"
"titanoboa>=0.2.6",
]

[project.optional-dependencies]
Expand Down

0 comments on commit 2b70226

Please sign in to comment.