Skip to content

Commit

Permalink
#Node.js-Library ETC - mordor and kotti introduced in place of morden
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasov-menasoft committed Mar 30, 2020
1 parent c4e1efc commit 6030a4f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cryptoapis.io",
"version": "4.4.1",
"version": "4.4.2",
"description": "Crypto APIs SDK",
"main": "src/index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/rest-apis/blockchain/ETC/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/rest-apis/blockchain/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/rest-apis/blockchains/ETC/index.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit 6030a4f

Please sign in to comment.