[harmony] Init Harmony (#145)

This commit is contained in:
Edgar Aroutiounian 2019-09-06 12:22:24 -07:00 committed by Mykola
parent 43b993b304
commit 251af67f66
3 changed files with 5 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@ -28,8 +28,8 @@ function checkRootDir () {
checkBlockhainsFolder()
function checkBlockhainsFolder(){
const currentBlockchains = 59
const currentBlockchains = 60;
const foundBlockchains = readDirSync(blockchainsFolderPath)
if (foundBlockchains.length !== currentBlockchains) {
@ -49,7 +49,7 @@ function checkBlockhainsFolder(){
if (uppercaseExp.test(asset)) {
exitWithMsg(`${asset} folder must be in lowercase`)
}
if (!isEthereumAddress(asset)) {
exitWithMsg(`Invalid asset naming "${assetsPath}"`)
}
@ -160,7 +160,7 @@ function checkValidatorsFolder(networkPath) {
if (keys.length !== 4) {
exitWithMsg(`Add test for new validator object key: ${keys.length}`)
}
keys.forEach(key => {
const keyType = typeof key
if (keyType !== "string") {
@ -192,4 +192,4 @@ function exitWithMsg (msg) {
process.exit(1)
}
console.log(`\nPassed all tests`)
console.log(`\nPassed all tests`)