aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-06-29 02:23:31 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-07-07 07:27:08 +0800
commit9cde5ab11b0670eed7baeb2f31486cb3e253bdcb (patch)
treef31a0b631c19227cbf7a62a3be0f92a1b7b1a586 /ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js
parent7732cd4100f3c40f35eeaec669094f63292cbe3d (diff)
downloadtangerine-wallet-browser-9cde5ab11b0670eed7baeb2f31486cb3e253bdcb.tar
tangerine-wallet-browser-9cde5ab11b0670eed7baeb2f31486cb3e253bdcb.tar.gz
tangerine-wallet-browser-9cde5ab11b0670eed7baeb2f31486cb3e253bdcb.tar.bz2
tangerine-wallet-browser-9cde5ab11b0670eed7baeb2f31486cb3e253bdcb.tar.lz
tangerine-wallet-browser-9cde5ab11b0670eed7baeb2f31486cb3e253bdcb.tar.xz
tangerine-wallet-browser-9cde5ab11b0670eed7baeb2f31486cb3e253bdcb.tar.zst
tangerine-wallet-browser-9cde5ab11b0670eed7baeb2f31486cb3e253bdcb.zip
Use eth-method-registry to get method data
Diffstat (limited to 'ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js')
-rw-r--r--ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js b/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js
index dfbbd0177..1a399a464 100644
--- a/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js
+++ b/ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js
@@ -18,6 +18,7 @@ export default class ConfirmTransactionBase extends Component {
// Redux props
txData: PropTypes.object,
tokenData: PropTypes.object,
+ methodData: PropTypes.object,
tokenProps: PropTypes.object,
isTxReprice: PropTypes.bool,
nonce: PropTypes.string,
@@ -245,7 +246,7 @@ export default class ConfirmTransactionBase extends Component {
data,
} = {},
} = {},
- tokenData: {
+ methodData: {
name,
params,
} = {},
@@ -266,7 +267,12 @@ export default class ConfirmTransactionBase extends Component {
</span>
</div>
<div className="confirm-page-container-content__data-box">
- { JSON.stringify(params, null, 2) }
+ <div className="confirm-page-container-content__data-field-label">
+ { `${t('parameters')}:` }
+ </div>
+ <div>
+ <pre>{ JSON.stringify(params, null, 2) }</pre>
+ </div>
</div>
<div className="confirm-page-container-content__data-box-label">
{`${t('hexData')}:`}
@@ -318,7 +324,7 @@ export default class ConfirmTransactionBase extends Component {
fromAddress,
toName,
toAddress,
- tokenData,
+ methodData,
ethTransactionAmount,
fiatTransactionAmount,
valid: propsValid,
@@ -336,7 +342,7 @@ export default class ConfirmTransactionBase extends Component {
warning,
} = this.props
- const { name } = tokenData
+ const { name } = methodData
const fiatConvertedAmount = formatCurrency(fiatTransactionAmount, currentCurrency)
const { valid, errorMessage } = this.getError()