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
Fix deployment tutorial: add --broadcast flag and clarify env setup (#522)
Add missing --broadcast flag to forge create command and clarify
COUNTER_CONTRACT_ADDRESS environment variable setup steps to prevent
deployment and verification failures.
This performs a simulation without broadcasting the transaction to the network. You'll see the transaction details and contract ABI, but no actual deployment will occur.
110
+
111
+
2. Deploy your contract by adding the `--broadcast` flag:
Make sure you've added `COUNTER_CONTRACT_ADDRESS` to your `.env` file and run `source .env` before running this command. Otherwise, the environment variable will be undefined and the command will fail.
162
+
</Tip>
163
+
135
164
This will return the initial value of the Counter contract's `number` storage variable, which will be `0`.
136
165
137
166
**Congratulations! You've deployed your smart contracts to Base Sepolia!**
0 commit comments