-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✏️ Add contract verification to docs (#23)
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Verifying smart contracts | ||
========================= | ||
|
||
Currently, you can automate contract verification on Etherscan | ||
if you are using Waffle to build your contracts. | ||
|
||
In order to verify your contracts, use your deployment script | ||
with the following command line parameters: | ||
|
||
.. code-block:: bash | ||
yarn ts-node deployment.ts --verify --etherscan-key <ETHERSCAN_API_KEY> | ||
In order for this to work, the :code:`compilerOptions` in your | ||
:code:`waffle.json` config file must be stated explicitly, as | ||
Waffle's default compiler options are different from Etherscan's. | ||
|
||
The :code:`compilerVersion` setting also needs to be set to | ||
one of the `compiler versions supported by Etherscan <https://etherscan.io/solcversions>`_. |