mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Allow sending transactions with hex data and no recipient
This commit is contained in:
parent
23aabcca6f
commit
508a712479
@ -86,9 +86,9 @@ export default class SendFooter extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
formShouldBeDisabled () {
|
formShouldBeDisabled () {
|
||||||
const { inError, selectedToken, tokenBalance, gasTotal, to } = this.props
|
const { data, inError, selectedToken, tokenBalance, gasTotal, to } = this.props
|
||||||
const missingTokenBalance = selectedToken && !tokenBalance
|
const missingTokenBalance = selectedToken && !tokenBalance
|
||||||
return inError || !gasTotal || missingTokenBalance || !to
|
return inError || !gasTotal || missingTokenBalance || !(data || to)
|
||||||
}
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
|
Loading…
Reference in New Issue
Block a user