mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #10253 from MetaMask/Version-v9.0.3
Version v9.0.3 RC
This commit is contained in:
commit
6411ac5bc7
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## Current Develop Branch
|
## Current Develop Branch
|
||||||
|
|
||||||
|
## 9.0.3 Fri Jan 22 2021
|
||||||
|
- [#10243](https://github.com/MetaMask/metamask-extension/pull/10243): Fix site metadata handling
|
||||||
|
- [#10252](https://github.com/MetaMask/metamask-extension/pull/10252): Fix decrypt message confirmation UI crash
|
||||||
|
|
||||||
## 9.0.2 Wed Jan 20 2021
|
## 9.0.2 Wed Jan 20 2021
|
||||||
|
|
||||||
- [#10191](https://github.com/MetaMask/metamask-extension/pull/10191): zh_TW: 乙太 -> 以太 (#10191)
|
- [#10191](https://github.com/MetaMask/metamask-extension/pull/10191): zh_TW: 乙太 -> 以太 (#10191)
|
||||||
|
@ -78,6 +78,6 @@
|
|||||||
"notifications"
|
"notifications"
|
||||||
],
|
],
|
||||||
"short_name": "__MSG_appName__",
|
"short_name": "__MSG_appName__",
|
||||||
"version": "9.0.2",
|
"version": "9.0.3",
|
||||||
"web_accessible_resources": ["inpage.js", "phishing.html"]
|
"web_accessible_resources": ["inpage.js", "phishing.html"]
|
||||||
}
|
}
|
||||||
|
@ -74,8 +74,8 @@ export default function createPermissionsMethodMiddleware({
|
|||||||
// custom method for getting metadata from the requesting domain,
|
// custom method for getting metadata from the requesting domain,
|
||||||
// sent automatically by the inpage provider when it's initialized
|
// sent automatically by the inpage provider when it's initialized
|
||||||
case 'metamask_sendDomainMetadata': {
|
case 'metamask_sendDomainMetadata': {
|
||||||
if (typeof req.domainMetadata?.name === 'string') {
|
if (typeof req.params?.name === 'string') {
|
||||||
addDomainMetadata(req.origin, req.domainMetadata)
|
addDomainMetadata(req.origin, req.params)
|
||||||
}
|
}
|
||||||
res.result = true
|
res.result = true
|
||||||
return
|
return
|
||||||
|
@ -600,7 +600,7 @@ export const getters = deepFreeze({
|
|||||||
return {
|
return {
|
||||||
origin,
|
origin,
|
||||||
method: 'metamask_sendDomainMetadata',
|
method: 'metamask_sendDomainMetadata',
|
||||||
domainMetadata: {
|
params: {
|
||||||
...args,
|
...args,
|
||||||
name,
|
name,
|
||||||
},
|
},
|
||||||
|
@ -174,8 +174,9 @@ export default class ConfirmDecryptMessage extends Component {
|
|||||||
const { decryptMessageInline, domainMetadata, txData } = this.props
|
const { decryptMessageInline, domainMetadata, txData } = this.props
|
||||||
const { t } = this.context
|
const { t } = this.context
|
||||||
|
|
||||||
const origin = domainMetadata[txData.msgParams.origin]
|
const originMetadata = domainMetadata[txData.msgParams.origin]
|
||||||
const notice = t('decryptMessageNotice', [origin.name])
|
const name = originMetadata?.name || txData.msgParams.origin
|
||||||
|
const notice = t('decryptMessageNotice', [txData.msgParams.origin])
|
||||||
|
|
||||||
const {
|
const {
|
||||||
hasCopied,
|
hasCopied,
|
||||||
@ -191,15 +192,15 @@ export default class ConfirmDecryptMessage extends Component {
|
|||||||
{this.renderAccountInfo()}
|
{this.renderAccountInfo()}
|
||||||
<div className="request-decrypt-message__visual">
|
<div className="request-decrypt-message__visual">
|
||||||
<section>
|
<section>
|
||||||
{origin.icon ? (
|
{originMetadata?.icon ? (
|
||||||
<img
|
<img
|
||||||
className="request-decrypt-message__visual-identicon"
|
className="request-decrypt-message__visual-identicon"
|
||||||
src={origin.icon}
|
src={originMetadata?.icon}
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<i className="request-decrypt-message__visual-identicon--default">
|
<i className="request-decrypt-message__visual-identicon--default">
|
||||||
{origin.name.charAt(0).toUpperCase()}
|
{name.charAt(0).toUpperCase()}
|
||||||
</i>
|
</i>
|
||||||
)}
|
)}
|
||||||
<div className="request-decrypt-message__notice">{notice}</div>
|
<div className="request-decrypt-message__notice">{notice}</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user