Skip to content

Commit 19cba1a

Browse files
authored
changes needed for contract verification (#764)
* changes needed for contract verification * gotcha
1 parent a5e00c2 commit 19cba1a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ analyze:
4646

4747
# Deployment
4848
deploy-contracts:
49-
forge script ./deploy.sol \
50-
--rpc-url ${ETH_RPC_URL} --sender ${DEPLOY_ADDRESS} --keystore ${DEPLOY_KEY} --broadcast -vvv
49+
forge script script/deploy.s.sol \
50+
--rpc-url ${ETH_RPC_URL} --sender ${DEPLOY_ADDRESS} --keystore ${DEPLOY_KEY} --broadcast -vvv --verify

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ To use it, ensure the following env variables are in your `.env` file or exporte
172172
| `ETHERSCAN_API_KEY` | required to verify contracts
173173
| `ETH_RPC_URL` | node on your target deployment network
174174

175-
Since contract source has not yet been made public, the `--verify` switch has been omitted. To run:
175+
To run:
176176

177177
```
178178
make deploy-contracts
@@ -191,7 +191,7 @@ Upon completion, contract addresses will be printed to `stdout`:
191191
192192
```
193193

194-
Record these addresses.
194+
Record these addresses. If Etherscan verification fails on the first try, copy the deployment command from the `Makefile`, and tack a `--resume` switch onto the end.
195195

196196
### Validation
197197

@@ -216,4 +216,4 @@ cast send ${DAI_TOKEN} "approve(address,uint256)" ${WBTC_DAI_POOL} 50000ether \
216216
--from ${DEPLOY_ADDRESS} --keystore ${DEPLOY_KEY}
217217
cast send ${WBTC_DAI_POOL} "addQuoteToken(uint256,uint256)" 100ether 3232 \
218218
--from ${DEPLOY_ADDRESS} --keystore ${DEPLOY_KEY}
219-
```
219+
```

deploy.sol script/deploy.s.sol

File renamed without changes.

0 commit comments

Comments
 (0)