Skip to content

Commit

Permalink
chore: add real sepolia deployment to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Oct 10, 2024
1 parent 590c368 commit 5075704
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ jobs:
rm era_test_node.tar.gz
- run: make coverage lint
env:
SEPOLIA_PKEY: ${{ secrets.SEPOLIA_PKEY }}
9 changes: 7 additions & 2 deletions boa_zksync/verifiers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import re
import time
from dataclasses import dataclass
from datetime import datetime, timedelta
Expand Down Expand Up @@ -48,14 +49,18 @@ def verify(
or wait for verification to complete. Defaults to False
"""
url = f"{self.uri}/contract_verification"

# note: only pass the first three digits of the version, as that's what the explorer expects
version, = re.search(r"(\d+\.\d+\.\d+)", solc_json["compiler_version"]).groups()
body = {
"contractAddress": address,
"sourceCode": {
name: asset["content"] for name, asset in solc_json["sources"].items()
contract_name if name == "<unknown>" else name: asset["content"]
for name, asset in solc_json["sources"].items()
},
"codeFormat": "vyper-multi-file",
"contractName": contract_name,
"compilerVyperVersion": solc_json["compiler_version"],
"compilerVyperVersion": version,
"compilerZkvyperVersion": solc_json["zkvyper_version"],
"constructorArguments": f"0x{constructor_calldata.hex()}",
"optimizationUsed": True, # hardcoded in hardhat for some reason: https://github.com/matter-labs/hardhat-zksync/blob/187722e/packages/hardhat-zksync-verify-vyper/src/task-actions.ts#L110 # noqa: E501
Expand Down

0 comments on commit 5075704

Please sign in to comment.