Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
s-damian committed Aug 31, 2024
1 parent 7cddf68 commit 24141f7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/Localnet-to-Devnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,20 @@ anchor deploy --provider.cluster devnet

### If the Program ID changed during deployment:

#### Update Program ID
- Update Program ID:

If the Program ID changed during deployment, you must update the references to the Program ID in your configuration files:

```bash
npm run update-program-id
```


#### Rebuild and Redeploy the Anchor Program
- Rebuild and Redeploy the Anchor Program:

```bash
anchor build && anchor deploy --provider.cluster devnet
```

> This step is crucial after updating the Program ID to ensure that the deployed program matches the updated configuration.



Expand Down

0 comments on commit 24141f7

Please sign in to comment.