Skip to content

Commit 6ab9385

Browse files
committed
Merge branch 'master' of https://github.com/MetaMask/metamask-extension into normalize-transactions
2 parents ef21af2 + e1b1da9 commit 6ab9385

File tree

6 files changed

+16
-6
lines changed

6 files changed

+16
-6
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
## Current Master
44

55
- Fix bug where checksum address are messing with balance issue [#3843](https://github.com/MetaMask/metamask-extension/issues/3843)
6+
- new ui: fix the confirm transaction screen
7+
8+
## 4.5.2 Wed Apr 04 2018
9+
10+
- Fix overly strict validation where transactions were rejected with hex encoded "chainId"
611

712
## 4.5.1 Tue Apr 03 2018
813

app/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "__MSG_appName__",
33
"short_name": "__MSG_appName__",
4-
"version": "4.5.1",
4+
"version": "4.5.2",
55
"manifest_version": 2,
66
"author": "https://metamask.io",
77
"description": "__MSG_appDescription__",

app/scripts/contentscript.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,11 @@ function documentElementCheck () {
131131
}
132132

133133
function blacklistedDomainCheck () {
134-
var blacklistedDomains = ['uscourts.gov', 'dropbox.com']
134+
var blacklistedDomains = [
135+
'uscourts.gov',
136+
'dropbox.com',
137+
'webbyawards.com',
138+
]
135139
var currentUrl = window.location.href
136140
var currentRegex
137141
for (let i = 0; i < blacklistedDomains.length; i++) {

app/scripts/lib/tx-state-manager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ module.exports = class TransactionStateManager extends EventEmitter {
143143
// validate types
144144
switch (key) {
145145
case 'chainId':
146-
if (typeof value !== 'number') throw new Error(`${key} in txParams is not a Number. got: (${value})`)
146+
if (typeof value !== 'number' && typeof value !== 'string') throw new Error(`${key} in txParams is not a Number or hex string. got: (${value})`)
147147
break
148148
default:
149149
if (typeof value !== 'string') throw new Error(`${key} in txParams is not a string. got: (${value})`)

ui/app/components/ens-input.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ EnsInput.prototype.render = function () {
3232
const network = this.props.network
3333
const networkHasEnsSupport = getNetworkEnsSupport(network)
3434

35-
if (!networkHasEnsSupport) return
36-
3735
props.onChange(recipient)
3836

37+
if (!networkHasEnsSupport) return
38+
3939
if (recipient.match(ensRE) === null) {
4040
return this.setState({
4141
loadingEns: false,

ui/app/components/pending-tx/confirm-send-ether.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ ConfirmSendEther.prototype.getData = function () {
237237
const { identities } = this.props
238238
const txMeta = this.gatherTxMeta()
239239
const txParams = txMeta.txParams || {}
240+
const account = identities ? identities[txParams.from] || {} : {}
240241
const { FIAT: gasFeeInFIAT, ETH: gasFeeInETH, gasFeeInHex } = this.getGasFee()
241242
const { FIAT: amountInFIAT, ETH: amountInETH } = this.getAmount()
242243

@@ -252,7 +253,7 @@ ConfirmSendEther.prototype.getData = function () {
252253
return {
253254
from: {
254255
address: txParams.from,
255-
name: identities[txParams.from].name,
256+
name: account.name,
256257
},
257258
to: {
258259
address: txParams.to,

0 commit comments

Comments
 (0)