Skip to content

Commit

Permalink
changes needed for contract verification (#764)
Browse files Browse the repository at this point in the history
* changes needed for contract verification

* gotcha
  • Loading branch information
EdNoepel authored Apr 25, 2023
1 parent a5e00c2 commit 19cba1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ analyze:

# Deployment
deploy-contracts:
forge script ./deploy.sol \
--rpc-url ${ETH_RPC_URL} --sender ${DEPLOY_ADDRESS} --keystore ${DEPLOY_KEY} --broadcast -vvv
forge script script/deploy.s.sol \
--rpc-url ${ETH_RPC_URL} --sender ${DEPLOY_ADDRESS} --keystore ${DEPLOY_KEY} --broadcast -vvv --verify
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ To use it, ensure the following env variables are in your `.env` file or exporte
| `ETHERSCAN_API_KEY` | required to verify contracts
| `ETH_RPC_URL` | node on your target deployment network

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

```
make deploy-contracts
Expand All @@ -191,7 +191,7 @@ Upon completion, contract addresses will be printed to `stdout`:
```

Record these addresses.
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.

### Validation

Expand All @@ -216,4 +216,4 @@ cast send ${DAI_TOKEN} "approve(address,uint256)" ${WBTC_DAI_POOL} 50000ether \
--from ${DEPLOY_ADDRESS} --keystore ${DEPLOY_KEY}
cast send ${WBTC_DAI_POOL} "addQuoteToken(uint256,uint256)" 100ether 3232 \
--from ${DEPLOY_ADDRESS} --keystore ${DEPLOY_KEY}
```
```
File renamed without changes.

0 comments on commit 19cba1a

Please sign in to comment.