Skip to content

Commit

Permalink
GITBOOK-2434: #499 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
theekrystallee authored and gitbook-bot committed Nov 13, 2023
1 parent 9e02ec9 commit cb3ef3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ solc --metadata contracts/HelloWorld.sol > metadata.json

**Note:`solc` vs. `solcjs`**

While the machine code generated by both `solc` and `solcjs` compilers are identical, the metadata are not. As a result, using `solcjs` to verify a smart contract that initially deployed using `solc` will result in a "partial match" during the verification process. This is due to the difference in the metadata. Run `solc --help` or reference the official Solidity compiler documentation for additional details [here](https://docs.soliditylang.org/en/v0.8.17/using-the-compiler.html#using-the-commandline-compiler). 
**📣** `solcjs` will not generate the metadata using the `--metadata` flag. The option is only supported in `solc`.

</details>

Expand Down

0 comments on commit cb3ef3e

Please sign in to comment.