Skip to content

Commit 4a61d30

Browse files
authored
feat(sdk)!: change default network to mainnet (#2161)
1 parent 8b01e20 commit 4a61d30

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/js-dash-sdk/src/SDK/Client/Client.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ describe('Dash - Client', function suite() {
3737
testHDKey = 'tprv8ZgxMBicQKsPeGi4CikhacVPz6UmErenu1PoD3S4XcEDSPP8auRaS8hG3DQtsQ2i9HACgohHwF5sgMVJNksoKqYoZbis8o75Pp1koCme2Yo';
3838

3939
client = new Client({
40+
network: 'testnet',
4041
wallet: {
4142
HDPrivateKey: testHDKey,
4243
},
@@ -77,7 +78,7 @@ describe('Dash - Client', function suite() {
7778
it('should be instantiable', () => {
7879
client = new Client();
7980
expect(client).to.exist;
80-
expect(client.network).to.be.equal('testnet');
81+
expect(client.network).to.be.equal('mainnet');
8182
expect(client.getDAPIClient().constructor.name).to.be.equal('DAPIClient');
8283
});
8384

@@ -111,7 +112,7 @@ describe('Dash - Client', function suite() {
111112
wallet: {
112113
mnemonic: testMnemonic,
113114
offlineMode: true,
114-
network: 'evonet',
115+
network: 'mainnet',
115116
},
116117
});
117118

packages/js-dash-sdk/src/SDK/Client/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export interface ClientOpts {
4848
* and the Dash Platform (layer 2).
4949
*/
5050
export class Client extends EventEmitter {
51-
public network: string = 'testnet';
51+
public network: string = 'mainnet';
5252

5353
public wallet: Wallet | undefined;
5454

@@ -74,7 +74,7 @@ export class Client extends EventEmitter {
7474

7575
this.options = options;
7676

77-
this.network = this.options.network ? this.options.network.toString() : 'testnet';
77+
this.network = this.options.network ? this.options.network.toString() : 'mainnet';
7878

7979
// Initialize DAPI Client
8080
const dapiClientOptions = {

0 commit comments

Comments
 (0)