Skip to content

Commit 8206385

Browse files
authored
doc: to compile with solc
1 parent bf3ac73 commit 8206385

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ npm run generate:dev && poetry run python -m scripts.generate recover
6767
```
6868
Check the `genesis.json` file, and you can get the exact compiled bytecode for different network.
6969
(`poetry run python -m scripts.generate --help ` for more details)
70+
```
71+
# you can verify the bytecode in genesis.json with solc, take ./contracts/StakeHub.sol for example:
72+
solc-select use 0.8.17
73+
solc --optimize --optimize-runs 200 --abi --metadata-hash none --bin-runtime ./contracts/StakeHub.sol --base-path . --include-path ./node_modules/ -o output
74+
```
7075

7176
You can refer to `generate:dev` in `package.json` for more details about how to custom params for local dev-net.
7277

0 commit comments

Comments
 (0)