clean code

This commit is contained in:
liangping
2021-08-05 20:53:01 +08:00
parent 2293446c93
commit 79b4bc671b
9 changed files with 6 additions and 19 deletions
+1 -2
View File
@@ -24,9 +24,8 @@ Object.keys(chains).forEach(key => {
// eslint-disable-next-line prefer-destructuring
chain.sdk_version = version[0]
localStorage.setItem('chains', JSON.stringify(chains))
console.log(`${chain.api}/node_info`, localStorage.getItem('chains'))
})
.catch(e => console.log(`Failed get api vesion of ${key}`, e))
.catch(e => console.error(`Failed get api vesion of ${key}`, e))
})
export default {