mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Lint fixes.
This commit is contained in:
parent
bf4043c59b
commit
5fe3c5aae6
@ -2,7 +2,6 @@ const Component = require('react').Component
|
||||
const { connect } = require('react-redux')
|
||||
const h = require('react-hyperscript')
|
||||
const inherits = require('util').inherits
|
||||
const ethAbi = require('ethereumjs-abi')
|
||||
const tokenAbi = require('human-standard-token-abi')
|
||||
const abiDecoder = require('abi-decoder')
|
||||
abiDecoder.addABI(tokenAbi)
|
||||
@ -415,7 +414,7 @@ ConfirmSendToken.prototype.onSubmit = function (event) {
|
||||
|
||||
ConfirmSendToken.prototype.cancel = function (event, txMeta) {
|
||||
event.preventDefault()
|
||||
const { send, cancelTransaction } = this.props
|
||||
const { cancelTransaction } = this.props
|
||||
|
||||
cancelTransaction(txMeta)
|
||||
}
|
||||
|
@ -79,7 +79,6 @@ function mapDispatchToProps (dispatch) {
|
||||
updateSendErrors: newError => dispatch(actions.updateSendErrors(newError)),
|
||||
goHome: () => dispatch(actions.goHome()),
|
||||
clearSend: () => dispatch(actions.clearSend()),
|
||||
backToConfirmScreen: editingTransactionId => dispatch(actions.showConfTxPage({ id: editingTransactionId })),
|
||||
setMaxModeTo: bool => dispatch(actions.setMaxModeTo(bool)),
|
||||
}
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ function currentTxView (opts) {
|
||||
log.info('rendering current tx view')
|
||||
const { txData } = opts
|
||||
const { txParams, msgParams } = txData
|
||||
console.log(`22222 currentTxView txData`, txData);
|
||||
|
||||
if (txParams) {
|
||||
log.debug('txParams detected, rendering pending tx')
|
||||
return h(PendingTx, opts)
|
||||
|
@ -608,8 +608,6 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
|
||||
selectedToken,
|
||||
editingTransactionId,
|
||||
errors: { amount: amountError, to: toError },
|
||||
backToConfirmScreen,
|
||||
unapprovedTxs,
|
||||
} = this.props
|
||||
|
||||
const noErrors = !amountError && toError === null
|
||||
|
Loading…
Reference in New Issue
Block a user