diff --git a/README.md b/README.md
index ca33dd5..264b3f4 100644
--- a/README.md
+++ b/README.md
@@ -24,11 +24,12 @@ FuZe is Zeta's cross-program integration ecosystem.
This repository contains the Zeta Cross Program Invocation (CPI) interface as well as a number of helpful examples and reference implementations on how to compose (fuse) with the Zeta DEX.
## Networks
+To change the network, one must update both the `Anchor.toml` as well as the program ID in the `.env` to the desired network.
-| Key | Value |
-| ------- | :--------------------------------------------: |
-| Devnet | Live |
-| Mainnet | Coming soon... |
+| Network | Program ID |
+| ------- | :---------------------------------------------------------------------------: |
+| Devnet | BG3oRikW8d16YjUEmX3ZxHm9SiJzrGtMhsSR8aCw1Cd7 |
+| Mainnet | ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD |
## Cross Program Invocations
diff --git a/vault/tests/vault.ts b/vault/tests/vault.ts
index ede1763..ad087e4 100644
--- a/vault/tests/vault.ts
+++ b/vault/tests/vault.ts
@@ -19,25 +19,9 @@ describe("vault", () => {
console.log(vaultAdmin.publicKey.toString());
console.log(userKeypair.publicKey.toString());
- // Configure the client to use the local cluster.
- const url = "https://api.devnet.solana.com";
- if (url === undefined) {
- throw new Error("ANCHOR_PROVIDER_URL is not defined");
- }
- const connection = new anchor.web3.Connection(
- url,
- zetaUtils.defaultCommitment()
- );
- const provider = new anchor.Provider(
- connection,
- new anchor.Wallet(userKeypair),
- zetaUtils.defaultCommitment()
- );
+ // Configure the client to use the specified cluster.
+ const provider = anchor.Provider.env();
anchor.setProvider(provider);
- const publicConnection = new anchor.web3.Connection(
- "https://api.devnet.solana.com",
- zetaUtils.defaultCommitment()
- );
const program = anchor.workspace.Vault as anchor.Program;
const zetaProgram = new anchor.web3.PublicKey(process.env!.zeta_program);
@@ -62,8 +46,8 @@ describe("vault", () => {
);
// Airdrop some SOL to the vault authority
- await publicConnection.confirmTransaction(
- await publicConnection.requestAirdrop(
+ await provider.connection.confirmTransaction(
+ await provider.connection.requestAirdrop(
vaultAdmin.publicKey,
1.0 * anchor.web3.LAMPORTS_PER_SOL // 1 SOL
),