From 6030a4f5363481fa52a077dd04e3320a70801fa2 Mon Sep 17 00:00:00 2001 From: Momchil Date: Mon, 30 Mar 2020 12:34:02 +0300 Subject: [PATCH] #Node.js-Library ETC - mordor and kotti introduced in place of morden --- package-lock.json | 2 +- package.json | 2 +- src/rest-apis/blockchain/ETC/index.js | 3 ++- src/rest-apis/blockchain/index.js | 2 +- tests/rest-apis/blockchains/ETC/index.js | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 97d410a..a609c87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { "name": "cryptoapis.io", - "version": "4.4.1", + "version": "4.4.2", "lockfileVersion": 1 } diff --git a/package.json b/package.json index 769c006..0ce66c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cryptoapis.io", - "version": "4.4.1", + "version": "4.4.2", "description": "Crypto APIs SDK", "main": "src/index.js", "scripts": { diff --git a/src/rest-apis/blockchain/ETC/index.js b/src/rest-apis/blockchain/ETC/index.js index b9106f6..eef1d19 100644 --- a/src/rest-apis/blockchain/ETC/index.js +++ b/src/rest-apis/blockchain/ETC/index.js @@ -12,7 +12,8 @@ const Transaction = require('../../../common/blockchain/eth-base-transaction'); const ID = 'etc'; const NETWORKS = { MAINNET: 'mainnet', - MORDEN: 'morden', + MORDOR: 'mordor', + KOTTI: 'kotti', }; class ETC extends BlockchainNetwork { diff --git a/src/rest-apis/blockchain/index.js b/src/rest-apis/blockchain/index.js index 1eeb18b..69d654a 100644 --- a/src/rest-apis/blockchain/index.js +++ b/src/rest-apis/blockchain/index.js @@ -40,7 +40,7 @@ class Blockchain { return this[bc].switchNetwork(this.ETH.NETWORKS.ROPSTEN); } if (bc === 'ETC') { - return this[bc].switchNetwork(this.ETC.NETWORKS.MORDEN); + return this[bc].switchNetwork(this.ETC.NETWORKS.MORDOR); } this[bc].switchNetwork(networkConfig); diff --git a/tests/rest-apis/blockchains/ETC/index.js b/tests/rest-apis/blockchains/ETC/index.js index 79562f0..0ef4887 100644 --- a/tests/rest-apis/blockchains/ETC/index.js +++ b/tests/rest-apis/blockchains/ETC/index.js @@ -1,6 +1,6 @@ const ETC = require('./etc.test'); -async function middleware(caClient, next, network = caClient.BC.ETC.NETWORKS.MORDEN) { +async function middleware(caClient, next, network = caClient.BC.ETC.NETWORKS.MORDOR) { caClient.BC.ETC.switchNetwork(network); await next(caClient);