diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-06-29 02:23:31 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-07-07 07:27:08 +0800 |
commit | 9cde5ab11b0670eed7baeb2f31486cb3e253bdcb (patch) | |
tree | f31a0b631c19227cbf7a62a3be0f92a1b7b1a586 /ui/app/components/pages/confirm-transaction-base/confirm-transaction-base.component.js | |
parent | 7732cd4100f3c40f35eeaec669094f63292cbe3d (diff) | |
download | dexon-wallet-9cde5ab11b0670eed7baeb2f31486cb3e253bdcb.tar.gz dexon-wallet-9cde5ab11b0670eed7baeb2f31486cb3e253bdcb.tar.zst dexon-wallet-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.js | 14 |
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 dfbbd017..1a399a46 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() |