aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-12-20 06:55:52 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-12-20 06:55:52 +0800
commite9bea92ac3243e58321cd8cf3f44f0df0c66aa70 (patch)
tree5443e05f633d339e3f9a96ab5bd364918173d4d2
parent20c043a4c280891b3b1322a06887e6515a8d94fa (diff)
downloadtangerine-wallet-browser-e9bea92ac3243e58321cd8cf3f44f0df0c66aa70.tar.gz
tangerine-wallet-browser-e9bea92ac3243e58321cd8cf3f44f0df0c66aa70.tar.zst
tangerine-wallet-browser-e9bea92ac3243e58321cd8cf3f44f0df0c66aa70.zip
Lint.
-rw-r--r--app/scripts/keyring-controller.js3
-rw-r--r--app/scripts/lib/idStore.js4
-rw-r--r--ui/app/actions.js4
3 files changed, 5 insertions, 6 deletions
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js
index 40c9695dd..ca4c306be 100644
--- a/app/scripts/keyring-controller.js
+++ b/app/scripts/keyring-controller.js
@@ -73,7 +73,7 @@ module.exports = class KeyringController extends EventEmitter {
// or accept a state-resolving promise to consume their results.
//
// Not all methods end with this, that might be a nice refactor.
- fullUpdate() {
+ fullUpdate () {
this.emit('update')
return Promise.resolve(this.getState())
}
@@ -586,7 +586,6 @@ module.exports = class KeyringController extends EventEmitter {
// Attempts to sign the provided @object msgParams.
signMessage (msgParams, cb) {
try {
-
const msgId = msgParams.metamaskId
delete msgParams.metamaskId
const approvalCb = this._unconfMsgCbs[msgId] || noop
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js
index d36504f13..cf4353e48 100644
--- a/app/scripts/lib/idStore.js
+++ b/app/scripts/lib/idStore.js
@@ -258,7 +258,7 @@ IdentityStore.prototype.addUnconfirmedTransaction = function (txParams, onTxDone
function estimateGas (cb) {
var estimationParams = extend(txParams)
- query.getBlockByNumber('latest', true, function(err, block){
+ query.getBlockByNumber('latest', true, function (err, block) {
if (err) return cb(err)
// check if gasLimit is already specified
const gasLimitSpecified = Boolean(txParams.gas)
@@ -267,7 +267,7 @@ IdentityStore.prototype.addUnconfirmedTransaction = function (txParams, onTxDone
estimationParams.gas = block.gasLimit
}
// run tx, see if it will OOG
- query.estimateGas(estimationParams, function(err, estimatedGasHex){
+ query.estimateGas(estimationParams, function (err, estimatedGasHex) {
if (err) return cb(err.message || err)
// all gas used - must be an error
if (estimatedGasHex === estimationParams.gas) {
diff --git a/ui/app/actions.js b/ui/app/actions.js
index 41be1004c..7c928a454 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -177,13 +177,13 @@ function tryUnlockMetamask (password) {
}
}
-function transitionForward() {
+function transitionForward () {
return {
type: this.TRANSITION_FORWARD,
}
}
-function transitionBackward() {
+function transitionBackward () {
return {
type: this.TRANSITION_BACKWARD,
}