From 028cd47b597c875641125ecf68139db06518af1e Mon Sep 17 00:00:00 2001 From: Patrick Collins <54278053+PatrickAlphaC@users.noreply.github.com> Date: Fri, 22 Nov 2024 16:25:31 -0500 Subject: [PATCH 1/3] Update pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7f70f9d..00bef91 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ classifiers = [ ] dependencies = [ - "titanoboa==0.2.5b1" + "titanoboa>=0.2.5b1" ] [project.optional-dependencies] From 2b70226c235fc0c6bac6cf9ee2a45c6ae848bb76 Mon Sep 17 00:00:00 2001 From: Patrick Collins <54278053+PatrickAlphaC@users.noreply.github.com> Date: Fri, 22 Nov 2024 16:54:19 -0500 Subject: [PATCH 2/3] feat: added filename to DB to match boa --- boa_zksync/types.py | 3 +++ pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/boa_zksync/types.py b/boa_zksync/types.py index 4b94d27..09d87c7 100644 --- a/boa_zksync/types.py +++ b/boa_zksync/types.py @@ -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: @@ -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"], diff --git a/pyproject.toml b/pyproject.toml index 00bef91..ddeb164 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ classifiers = [ ] dependencies = [ - "titanoboa>=0.2.5b1" + "titanoboa>=0.2.6", ] [project.optional-dependencies] From ff29987cd80b5b162cd489f7c22e9580152d09b3 Mon Sep 17 00:00:00 2001 From: Patrick Collins <54278053+PatrickAlphaC@users.noreply.github.com> Date: Sat, 23 Nov 2024 13:33:01 -0500 Subject: [PATCH 3/3] fix: 0.2.5 of boa --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ddeb164..1554ad1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ classifiers = [ ] dependencies = [ - "titanoboa>=0.2.6", + "titanoboa>=0.2.5", ] [project.optional-dependencies]