Skip to content

Commit

Permalink
Fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yqrashawn committed Apr 16, 2020
1 parent b537eba commit 0ea7aba
Show file tree
Hide file tree
Showing 6 changed files with 170 additions and 170 deletions.
6 changes: 3 additions & 3 deletions app/scripts/account-import-strategies/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from 'cfx-util'

const accountImporter = {
importAccount(strategy, args) {
importAccount (strategy, args) {
try {
const importer = this.strategies[strategy]
const privateKeyHex = importer.apply(null, args)
Expand All @@ -20,7 +20,7 @@ const accountImporter = {
},

strategies: {
'Private Key': privateKey => {
'Private Key': (privateKey) => {
if (!privateKey) {
throw new Error('Cannot import an empty key.')
}
Expand Down Expand Up @@ -49,7 +49,7 @@ const accountImporter = {
},
}

function walletToPrivateKey(wallet) {
function walletToPrivateKey (wallet) {
const privateKeyBuffer = wallet.getPrivateKey()
return bufferToHex(privateKeyBuffer)
}
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/controllers/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class PreferencesController {
let metaMetricsId = null
if (bool && !this.store.getState().metaMetricsId) {
metaMetricsId = bufferToHex(
sha3(
keccak(
String(Date.now()) +
String(Math.round(Math.random() * Number.MAX_SAFE_INTEGER))
)
Expand Down
Loading

0 comments on commit 0ea7aba

Please sign in to comment.