From 055ddd5f1e0acd8022189f7b6583055b0e68dbf1 Mon Sep 17 00:00:00 2001 From: chadmg Date: Thu, 13 Sep 2018 19:23:04 -0400 Subject: [PATCH 1/6] follow up style fix to #5242 --- ui/app/css/itcss/components/send.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/app/css/itcss/components/send.scss b/ui/app/css/itcss/components/send.scss index 4f97fc662..125134f12 100644 --- a/ui/app/css/itcss/components/send.scss +++ b/ui/app/css/itcss/components/send.scss @@ -622,14 +622,14 @@ position: relative; &__down-caret { - z-index: 1051; + z-index: 1026; position: absolute; top: 18px; right: 12px; } &__qr-code { - z-index: 1051; + z-index: 1026; position: absolute; top: 13px; right: 33px; @@ -649,7 +649,7 @@ &__to-autocomplete, &__memo-text-area, &__hex-data { &__input { - z-index: 1050; + z-index: 1025; position: relative; height: 54px; width: 100%; From c5b94097017cb27e556d002c2ddea90e1950f72b Mon Sep 17 00:00:00 2001 From: Sean Rabaut Date: Thu, 13 Sep 2018 20:18:58 -0400 Subject: [PATCH 2/6] Bug Fix: #5183 history not defined --- ui/app/components/pages/create-account/import-account/json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/components/pages/create-account/import-account/json.js b/ui/app/components/pages/create-account/import-account/json.js index 32b1065aa..90279bbbd 100644 --- a/ui/app/components/pages/create-account/import-account/json.js +++ b/ui/app/components/pages/create-account/import-account/json.js @@ -85,7 +85,7 @@ class JsonImportSubview extends Component { } createNewKeychain () { - const { firstAddress, displayWarning, importNewJsonAccount, setSelectedAddress } = this.props + const { firstAddress, displayWarning, importNewJsonAccount, setSelectedAddress, history } = this.props const state = this.state if (!state) { From 2ec09362c59958a457939724003312024f97393c Mon Sep 17 00:00:00 2001 From: Paul Bouchon Date: Fri, 14 Sep 2018 19:26:03 -0400 Subject: [PATCH 3/6] EIP-1102: Transitionary API (#5256) --- CHANGELOG.md | 1 + app/scripts/inpage.js | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a7346720..fbc7f9d52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - [#4606](https://github.com/MetaMask/metamask-extension/pull/4606): Add new metamask_watchAsset method. - [#5189](https://github.com/MetaMask/metamask-extension/pull/5189): Fix bug where Ropsten loading message is shown when connecting to Kovan. +- [#5256](https://github.com/MetaMask/metamask-extension/pull/5256): Add mock EIP-1102 support ## 4.9.3 Wed Aug 15 2018 diff --git a/app/scripts/inpage.js b/app/scripts/inpage.js index 1a170c617..d9fda1feb 100644 --- a/app/scripts/inpage.js +++ b/app/scripts/inpage.js @@ -22,6 +22,25 @@ var metamaskStream = new LocalMessageDuplexStream({ // compose the inpage provider var inpageProvider = new MetamaskInpageProvider(metamaskStream) +// Augment the provider with its enable method +inpageProvider.enable = function (options = {}) { + return new Promise((resolve, reject) => { + if (options.mockRejection) { + reject('User rejected account access') + } else { + inpageProvider.sendAsync({ method: 'eth_accounts', params: [] }, (error, response) => { + if (error) { + reject(error) + } else { + resolve(response.result) + } + }) + } + }) +} + +window.ethereum = inpageProvider + // // setup web3 // From b062fe2e9940720ba13c4884a10abf3eab7f25b8 Mon Sep 17 00:00:00 2001 From: Alexander Tseung Date: Fri, 14 Sep 2018 20:19:13 -0700 Subject: [PATCH 4/6] Fix speed up functionality --- .../transaction-list-item-details.component.js | 12 ++++++++++-- .../transaction-list-item.component.js | 5 ++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ui/app/components/transaction-list-item-details/transaction-list-item-details.component.js b/ui/app/components/transaction-list-item-details/transaction-list-item-details.component.js index d57ff130a..f65ff4d55 100644 --- a/ui/app/components/transaction-list-item-details/transaction-list-item-details.component.js +++ b/ui/app/components/transaction-list-item-details/transaction-list-item-details.component.js @@ -13,8 +13,9 @@ export default class TransactionListItemDetails extends PureComponent { } static propTypes = { - transaction: PropTypes.object, + onRetry: PropTypes.func, showRetry: PropTypes.bool, + transaction: PropTypes.object, } handleEtherscanClick = () => { @@ -26,6 +27,13 @@ export default class TransactionListItemDetails extends PureComponent { this.setState({ showTransactionDetails: true }) } + handleRetry = event => { + const { onRetry } = this.props + + event.stopPropagation() + onRetry() + } + render () { const { t } = this.context const { transaction, showRetry } = this.props @@ -40,7 +48,7 @@ export default class TransactionListItemDetails extends PureComponent { showRetry && (