From 4a896b274c0efda0bee6948a5001a8d8ff4da664 Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Tue, 3 Dec 2024 17:39:13 -0500 Subject: [PATCH] try to fix verification bundle --- boa_zksync/verifiers.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/boa_zksync/verifiers.py b/boa_zksync/verifiers.py index b8fcdc6..5e61dab 100644 --- a/boa_zksync/verifiers.py +++ b/boa_zksync/verifiers.py @@ -1,3 +1,4 @@ +import copy import re import time from dataclasses import dataclass @@ -50,12 +51,15 @@ def verify( """ url = f"{self.uri}/contract_verification" + solc_json = copy.deepcopy(solc_json) + solc_json["sources"] = { + (contract_name if name == "" else name): asset + for name, asset in solc_json["sources"].items() + } + body = { "contractAddress": address, - "sourceCode": { - contract_name if name == "" else name: asset["content"] - for name, asset in solc_json["sources"].items() - }, + "sourceCode": solc_json, "codeFormat": "vyper-multi-file", "contractName": contract_name, "compilerVyperVersion": self._extract_version(