Skip to content

Commit 9390500

Browse files
authoredDec 17, 2024··
Update TESTNET -> DEVNET in the docs (#744)
1 parent e56ee60 commit 9390500

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed
 

‎apps/nextra/pages/en/build/guides/exchanges.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ the `0x1::coin::balance<CoinType>(account address)` view function. This will co
126126
```ts filename="example.ts"
127127
import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
128128

129-
const config = new AptosConfig({ network: Network.TESTNET });
129+
const config = new AptosConfig({ network: Network.DEVNET });
130130
const aptos = new Aptos(config);
131131

132132
const coinType = "0x1::aptos_coin::AptosCoin";
@@ -146,7 +146,7 @@ A specific ledger version (transaction height) can be provided to get the balanc
146146
```ts filename="example.ts"
147147
import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
148148

149-
const config = new AptosConfig({ network: Network.TESTNET });
149+
const config = new AptosConfig({ network: Network.DEVNET });
150150
const aptos = new Aptos(config);
151151

152152
const coinType = "0x1::aptos_coin::AptosCoin";
@@ -173,7 +173,7 @@ Note, that this will not include the balance of coins if it's a migrated coin.
173173
```ts filename="example.ts"
174174
import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
175175

176-
const config = new AptosConfig({ network: Network.TESTNET });
176+
const config = new AptosConfig({ network: Network.DEVNET });
177177
const aptos = new Aptos(config);
178178

179179
const faMetadataAddress = "0xA";
@@ -193,7 +193,7 @@ A specific ledger version (transaction height) can be provided to get the balanc
193193
```ts filename="example.ts"
194194
import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
195195

196-
const config = new AptosConfig({ network: Network.TESTNET });
196+
const config = new AptosConfig({ network: Network.DEVNET });
197197
const aptos = new Aptos(config);
198198

199199
const faMetadataAddress = "0xA";

‎apps/nextra/pages/en/build/guides/system-integrators-guide.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ the `0x1::coin::balance<CoinType>(account address)` view function. This will co
282282
```ts filename="example.ts"
283283
import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";
284284

285-
const config = new AptosConfig({ network: Network.TESTNET });
285+
const config = new AptosConfig({ network: Network.DEVNET });
286286
const aptos = new Aptos(config);
287287

288288
const coinType = "0x1::aptos_coin::AptosCoin";

‎apps/nextra/pages/en/build/sdks/community-sdks/kotlin-sdk/building-transactions.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const val SEND_AMOUNT = 1_000_000UL
116116
* fails, an error is thrown.
117117
*/
118118
fun main() = runBlocking {
119-
val aptos = Aptos(AptosConfig(AptosSettings(network = Network.TESTNET)))
119+
val aptos = Aptos(AptosConfig(AptosSettings(network = Network.DEVNET)))
120120

121121
println("Generating Alice and Bob's accounts")
122122

‎apps/nextra/pages/en/build/sdks/ts-sdk/building-transactions.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async function example() {
120120
console.log("This example will create two accounts (Alice and Bob) and send a transaction transfering APT to Bob's account.");
121121

122122
// 0. Setup the client and test accounts
123-
const config = new AptosConfig({ network: Network.TESTNET });
123+
const config = new AptosConfig({ network: Network.DEVNET });
124124
const aptos = new Aptos(config);
125125

126126
let alice = Account.generate();

‎apps/nextra/pages/en/build/sdks/ts-sdk/building-transactions/batching-transactions.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async function example() {
2727
console.log("This example will send several transactions in a batch.");
2828

2929
// Setup the client and test accounts
30-
const config = new AptosConfig({ network: Network.TESTNET });
30+
const config = new AptosConfig({ network: Network.DEVNET });
3131
const aptos = new Aptos(config);
3232

3333
let sender = Account.generate();

‎apps/nextra/pages/en/build/sdks/ts-sdk/building-transactions/sponsoring-transactions.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async function example() {
106106
console.log("This example will send a sponsored transaction from Alice to Carol.");
107107

108108
// 0. Setup the client and test accounts
109-
const config = new AptosConfig({ network: Network.TESTNET });
109+
const config = new AptosConfig({ network: Network.DEVNET });
110110
const aptos = new Aptos(config);
111111

112112
let alice = Account.generate();

‎apps/nextra/pages/en/build/sdks/ts-sdk/fetch-data-via-sdk.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You can use the `Aptos` client to get on-chain data using a variety of helper fu
1212
Here’s an example showing how to fetch common data you may need in your application:
1313

1414
```ts filename="fetch-data.ts"
15-
const aptosConfig = new AptosConfig({ network: Network.TESTNET });
15+
const aptosConfig = new AptosConfig({ network: Network.DEVNET });
1616
const aptos = new Aptos(aptosConfig);
1717

1818
const fund = await aptos.getAccountInfo({ accountAddress: "0x123" });

‎apps/nextra/pages/en/build/sdks/ts-sdk/legacy-ts-sdk/migration-guide.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const tokens = await aptos.getAccountOwnedTokens({ accountAddress: "0x123" });
5656
To configure your `Aptos` client, you can use an `AptosConfig` object.
5757

5858
```ts filename="v2.ts"
59-
const aptosConfig = new AptosConfig({ network: Network.TESTNET }); // default to devnet
59+
const aptosConfig = new AptosConfig({ network: Network.DEVNET }); // default to devnet
6060
const aptos = new Aptos(config);
6161
```
6262

‎apps/nextra/pages/en/build/sdks/ts-sdk/type-safe-contract.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ import { Aptos, AptosConfig, NETWORK } from "@aptos-labs/ts-sdk";
6363
import { ABI } from "./abi";
6464

6565
// First, create an Aptos client, make sure the network is the one that contract lives on
66-
export const aptos = new Aptos(new AptosConfig({ network: NETWORK.TESTNET }));
66+
export const aptos = new Aptos(new AptosConfig({ network: Network.DEVNET }));
6767
// Second, create a SurfClient with the Aptos client and the ABI
6868
export const surfClient = createSurfClient(aptos).useABI(ABI);
6969

0 commit comments

Comments
 (0)
Please sign in to comment.