Skip to content

Commit

Permalink
Fix lint errors in config.js + update lib files
Browse files Browse the repository at this point in the history
  • Loading branch information
janedegtiareva committed Aug 29, 2019
1 parent d308ab8 commit 89fd2db
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 48 deletions.
8 changes: 4 additions & 4 deletions lib/account.js

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

20 changes: 10 additions & 10 deletions lib/utils/key_pair.js

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

68 changes: 34 additions & 34 deletions test/config.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
module.exports = function getConfig(env) {
switch (env) {
case 'production':
case 'development':
return {
networkId: 'default',
nodeUrl: 'http://34.94.33.164:3030',
masterAccount: 'test.near',
};
case 'local':
return {
networkId: 'local',
nodeUrl: 'http://localhost:3030',
keyPath: `${process.env.HOME}/.near/validator_key.json`,
};
case 'test':
return {
networkId: 'local',
nodeUrl: 'http://localhost:3030',
masterAccount: 'test.near',
};
case 'test-remote':
case 'ci':
return {
networkId: 'shared-test',
nodeUrl: 'http://shared-test.nearprotocol.com:3030',
masterAccount: 'test.near',
};
case 'ci-staging':
return {
networkId: 'shared-test-staging',
nodeUrl: 'http://staging-shared-test.nearprotocol.com:3030',
masterAccount: 'test.near',
};
default:
throw Error(`Unconfigured environment '${env}'. Can be configured in test/config.js.`);
case 'production':
case 'development':
return {
networkId: 'default',
nodeUrl: 'http://34.94.33.164:3030',
masterAccount: 'test.near',
};
case 'local':
return {
networkId: 'local',
nodeUrl: 'http://localhost:3030',
keyPath: `${process.env.HOME}/.near/validator_key.json`,
};
case 'test':
return {
networkId: 'local',
nodeUrl: 'http://localhost:3030',
masterAccount: 'test.near',
};
case 'test-remote':
case 'ci':
return {
networkId: 'shared-test',
nodeUrl: 'http://shared-test.nearprotocol.com:3030',
masterAccount: 'test.near',
};
case 'ci-staging':
return {
networkId: 'shared-test-staging',
nodeUrl: 'http://staging-shared-test.nearprotocol.com:3030',
masterAccount: 'test.near',
};
default:
throw Error(`Unconfigured environment '${env}'. Can be configured in test/config.js.`);
}
};

0 comments on commit 89fd2db

Please sign in to comment.