You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the `--verifier-url` value should be the target explorer's homepage URL. Some example URLs are:
141
-
142
-
-`https://base.blockscout.com/api/` for Base (Mainnet)
143
-
-`https://base-sepolia.blockscout.com/api/` for Base Sepolia (Testnet)
144
-
145
-
> [!NOTE]
146
-
>
147
-
> URL should not contain the API key! Foundry will read your `ETHERSCAN_API_KEY` from environment.
148
-
149
-
> [!NOTE]
150
-
>
151
-
> The `--verifier` can accept any of the following: `etherscan`, `blockscout`, `sourcify`, `oklink`. We are using Blockscout most of the time.
152
-
153
-
After deployment, we need to take care of two things:
153
+
### Upgrade Contract
154
154
155
-
-**ABIs**: to interact with the contracts
156
-
-**Artifacts**: required if we need to upgrade in future
155
+
Upgrading an existing contract is done as per the instructions in [openzeppelin-foundry-upgrades](https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades) repository.
157
156
158
-
We have a post-deployment script that outputs these files under the [`deployments/abis`](./deployments/abis/) folder:
157
+
First, we create a new contract with its name as `ContractNameV2`, and then we execute the following command:
Upgrading an existing contract is done as per the instructions in [openzeppelin-foundry-upgrades](https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades) repository.
168
-
169
-
To upgrade, you must
170
-
171
168
> [!NOTE]
172
169
>
173
-
> The `--sender <ADDRESS>` field is mandatory when deploying a contract, it can be obtained with:
170
+
> The `--sender <ADDRESS>` field is mandatory when deploying a contract, it can be obtained with the command below, which will prompt for keystore password:
0 commit comments