Execute methods button for contract type
This commit is contained in:
parent
712e41585e
commit
2d361f7a59
|
@ -215,10 +215,10 @@ AccountDetailScreen.prototype.render = function () {
|
|||
|
||||
h('.flex-grow'),
|
||||
|
||||
h('button', {
|
||||
!ifContractAcc(currentKeyring) ? h('button', {
|
||||
onClick: () => props.dispatch(actions.buyEthView(selected)),
|
||||
style: { marginRight: '10px' },
|
||||
}, 'Buy'),
|
||||
}, 'Buy') : null,
|
||||
|
||||
h('button', {
|
||||
onClick: () => {
|
||||
|
@ -228,7 +228,7 @@ AccountDetailScreen.prototype.render = function () {
|
|||
return props.dispatch(actions.showSendPage())
|
||||
}
|
||||
},
|
||||
}, 'Send'),
|
||||
}, ifContractAcc(currentKeyring) ? 'Execute methods' : 'Send'),
|
||||
|
||||
]),
|
||||
]),
|
||||
|
|
Loading…
Reference in New Issue