Skip to content

Commit

Permalink
copy icons for output fields
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov committed Dec 14, 2018
1 parent 71eaa04 commit 267807f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions old-ui/app/components/send/send-contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ class SendTransactionScreen extends PersistentForm {
style={{ marginTop: '10px' }}
>
{params.name || `${paramName} ${ind + 1}`}
{!isInput ? <i
className="clipboard cursor-pointer"
style={{ marginLeft: '10px' }}
onClick={(e) => { copyToClipboard(defaultValue) }}
/> : null}
</h3>
)
const field = (
Expand Down Expand Up @@ -286,7 +291,7 @@ class SendTransactionScreen extends PersistentForm {

callData = () => {
this.props.showLoadingIndication()
const { abi, methodSelected, inputValues } = this.state
const { abi, methodSelected, inputValues, methodOutputsView } = this.state
const { address } = this.props
const web3 = new Web3(global.ethereumProvider)

Expand All @@ -299,7 +304,7 @@ class SendTransactionScreen extends PersistentForm {
return this.props.displayWarning(err)
}
const outputValues = {}
if (this.state.methodOutputsView.length > 1) {
if (methodOutputsView.length > 1) {
output.forEach((val, ind) => {
outputValues[ind] = val
})
Expand Down

0 comments on commit 267807f

Please sign in to comment.