Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit 725ec1f

Browse files
authored
feat: connect to testnet by default (#176)
1 parent 425c694 commit 725ec1f

File tree

5 files changed

+35
-35
lines changed

5 files changed

+35
-35
lines changed

docs/getting-started/core-concepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ The Dash Platform Application Chain, provides to developers the ability to creat
2626
That application requires a set of rules and conditions describe in a portable document in the form of a JSON names : Application Schema.
2727

2828
When registered, those app schema are called contracts and contains a contractId (namespace : `client.contracts`).
29-
By default, this library supports DPNS (to attach a name to an identity), under the namespace `client.names` for evonet.
29+
By default, this library supports DPNS (to attach a name to an identity), under the namespace `client.names` for testnet.
3030

3131
You can read more on [how to use DPNS on a local evonet](/examples/use-local-evonet.md) or [how to use multiple apps](/getting-started/multiple-apps.md)

package-lock.json

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
},
3232
"homepage": "https://github.com/dashevo/DashJS#readme",
3333
"dependencies": {
34-
"@dashevo/dapi-client": "~0.17.0-dev.4",
35-
"@dashevo/dashcore-lib": "~0.19.12",
36-
"@dashevo/dpp": "~0.17.0-dev.6",
37-
"@dashevo/wallet-lib": "~7.17.0-dev.4",
34+
"@dashevo/dapi-client": "~0.17.0-dev.5",
35+
"@dashevo/dashcore-lib": "~0.19.18",
36+
"@dashevo/dpp": "~0.17.0-dev.9",
37+
"@dashevo/wallet-lib": "~7.17.0-dev.5",
3838
"bs58": "^4.0.1"
3939
},
4040
"devDependencies": {

src/SDK/Client/Client.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe('Dash - Client', function suite() {
8080
it('should be instantiable', function () {
8181
const client = new Client();
8282
expect(client).to.exist;
83-
expect(client.network).to.be.equal('evonet');
83+
expect(client.network).to.be.equal('testnet');
8484
expect(client.getDAPIClient().constructor.name).to.be.equal('DAPIClient');
8585
});
8686
it('should not initiate wallet lib without mnemonic', function () {
@@ -106,11 +106,11 @@ describe('Dash - Client', function suite() {
106106
it('should throw an error if client and wallet have different networks', async () => {
107107
try {
108108
new Client({
109-
network: 'evonet',
109+
network: 'testnet',
110110
wallet: {
111111
mnemonic,
112112
offlineMode: true,
113-
network: 'testnet',
113+
network: 'evonet',
114114
},
115115
});
116116

src/SDK/Client/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface ClientOpts {
3838
* and the Dash Platform (layer 2).
3939
*/
4040
export class Client {
41-
public network: string = 'evonet';
41+
public network: string = 'testnet';
4242
public wallet: Wallet | undefined;
4343
public account: Account | undefined;
4444
public platform: Platform | undefined;
@@ -58,7 +58,7 @@ export class Client {
5858
...options
5959
}
6060

61-
this.network = this.options.network ? this.options.network.toString() : 'evonet';
61+
this.network = this.options.network ? this.options.network.toString() : 'testnet';
6262

6363
// Initialize DAPI Client
6464
const dapiClientOptions = {

0 commit comments

Comments
 (0)