Skip to content

Commit

Permalink
try to fix verification bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Dec 3, 2024
1 parent 2e6a0e7 commit 4a896b2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions boa_zksync/verifiers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import copy
import re
import time
from dataclasses import dataclass
Expand Down Expand Up @@ -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 == "<unknown>" else name): asset
for name, asset in solc_json["sources"].items()
}

body = {
"contractAddress": address,
"sourceCode": {
contract_name if name == "<unknown>" 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(
Expand Down

0 comments on commit 4a896b2

Please sign in to comment.