capitalisk-dex 18.0.3 → 18.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -39,6 +39,7 @@ module.exports = class CapitaliskDEXModule {
39
39
  this.options = {...defaultConfig, ...config};
40
40
  this.appConfig = appConfig;
41
41
  this.alias = alias || DEFAULT_MODULE_ALIAS;
42
+ this.networkAlias = this.options.networkAlias || this.alias;
42
43
  this.updater = updater;
43
44
  if (!updates) {
44
45
  updates = [];
@@ -1296,7 +1297,7 @@ module.exports = class CapitaliskDEXModule {
1296
1297
 
1297
1298
  let hasMultisigWalletsInfo = false;
1298
1299
 
1299
- this.channel.subscribe(`network:event:${this.alias}:signatures`, async ({data}) => {
1300
+ this.channel.subscribe(`network:event:${this.networkAlias}:signatures`, async ({data}) => {
1300
1301
  if (!hasMultisigWalletsInfo) {
1301
1302
  return;
1302
1303
  }
@@ -2709,7 +2710,7 @@ module.exports = class CapitaliskDEXModule {
2709
2710
 
2710
2711
  // Broadcast the signature to all DEX nodes with a matching baseAddress and quoteAddress
2711
2712
  async _broadcastSignaturesToSubnet(signatureDataList) {
2712
- let actionRouteString = `${this.alias}?baseAddress=${this.baseAddress}&quoteAddress=${this.quoteAddress}`;
2713
+ let actionRouteString = `${this.networkAlias}?baseAddress=${this.baseAddress}&quoteAddress=${this.quoteAddress}`;
2713
2714
  try {
2714
2715
  await this.channel.invoke('network:emit', {
2715
2716
  event: `${actionRouteString}:signatures`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capitalisk-dex",
3
- "version": "18.0.3",
3
+ "version": "18.0.5",
4
4
  "description": "Decentralized exchange module.",
5
5
  "main": "index.js",
6
6
  "scripts": {