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 b92db83 commit 7cddf68
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/Localnet-to-Devnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,31 @@ anchor deploy --provider.cluster devnet
```




### If the Program ID changed during deployment:

#### 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

```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.




### Phantom Wallet

In your Phantom wallet settings, switch to **Solana Devnet**.
Expand Down

0 comments on commit 7cddf68

Please sign in to comment.