diff --git a/README.md b/README.md index 85178af..a94ae1f 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,17 @@ Upgrade a beacon: Upgrades.upgradeBeacon(beacon, "MyContractV2.sol"); ``` +### Deploying to a network + +Use `forge script` to broadcast and deploy. See Foundry's [Solidity Scripting](https://book.getfoundry.sh/tutorials/solidity-scripting) guide. + +> **Important** +> Include the `--sender ` flag for the `forge script` command when performing upgrades, using an address that owns the proxy or proxy admin. Otherwise, `OwnableUnauthorizedAccount` errors will occur. + +### Verifying source code on Etherscan + +Include the `--verify` flag when running `forge script`. This will verify your implementation contracts along with any proxy contracts as part of the deployment. + ## Contributing ### Running tests diff --git a/src/Upgrades.sol b/src/Upgrades.sol index fc6d69c..7c61f95 100644 --- a/src/Upgrades.sol +++ b/src/Upgrades.sol @@ -526,6 +526,4 @@ library Upgrades { } return addr; } - - // TODO support etherscan verify - consider https://book.getfoundry.sh/reference/forge/forge-verify-contract }