Skip to content

Commit

Permalink
chore: call it standalone, not localnet
Browse files Browse the repository at this point in the history
  • Loading branch information
chadoh committed Aug 23, 2023
1 parent 533544d commit d28fe3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cmd/crates/soroban-spec-typescript/src/boilerplate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use super::generate;
static PROJECT_DIR: Dir<'_> = include_dir!("$CARGO_MANIFEST_DIR/src/project_template");

const NETWORK_PASSPHRASE_FUTURENET: &str = "Test SDF Future Network ; October 2022";
const NETWORK_PASSPHRASE_LOCALNET: &str = "Standalone Network ; February 2017";
const NETWORK_PASSPHRASE_STANDALONE: &str = "Standalone Network ; February 2017";

pub struct Project(PathBuf);

Expand Down Expand Up @@ -112,8 +112,8 @@ impl Project {
fn format_networks_object(contract_id: &str, network_passphrase: &str) -> String {
let network = if network_passphrase == NETWORK_PASSPHRASE_FUTURENET {
"futurenet"
} else if network_passphrase == NETWORK_PASSPHRASE_LOCALNET {
"localnet"
} else if network_passphrase == NETWORK_PASSPHRASE_STANDALONE {
"standalone"
} else {
"unknown"
};
Expand Down
4 changes: 2 additions & 2 deletions cmd/crates/soroban-spec-typescript/ts-tests/src/test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import test from 'ava'
import { Contract, Ok, Err, networks } from 'test-custom-types'

const rpcUrl = 'https://rpc-futurenet.stellar.org'
const rpcUrl = 'https://localhost:8000/soroban/rpc'
const publicKey = 'GCBVOLOM32I7OD5TWZQCIXCXML3TK56MDY7ZMTAILIBQHHKPCVU42XYW'

const contract = new Contract({
...networks[Object.keys(networks)[0] as keyof typeof networks],
...networks.standalone,
rpcUrl,
wallet: {
isConnected: () => Promise.resolve(true),
Expand Down

0 comments on commit d28fe3e

Please sign in to comment.