Skip to content

Commit

Permalink
Update readme, add verify
Browse files Browse the repository at this point in the history
  • Loading branch information
ericglau committed Oct 26, 2023
1 parent 4549110 commit daebf00
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <SENDER_ADDRESS>` 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
Expand Down
2 changes: 0 additions & 2 deletions src/Upgrades.sol
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,4 @@ library Upgrades {
}
return addr;
}

// TODO support etherscan verify - consider https://book.getfoundry.sh/reference/forge/forge-verify-contract
}

0 comments on commit daebf00

Please sign in to comment.