             callback(e, null)
 
     # our asyncLoop
-    # may be we will need it sometime
     asyncLoop: (iterations, func, callback) ->
         index = 0
         done = false

        messages.add new PlainMessageView(message: address, className: 'green-message')
        messages.add new PlainMessageView(message: output, className: 'green-message')

    call: (@myContract, @functionName) ->
        result = @myContract[Object.keys(@functionName)[0]]()
        @showOutput @myContract.address, result

    toggle: ->
        if @modalPanel.isVisible()

                                    if !error
                                        self.state.childFunctions.push(childFunctions)
                                        self.forceUpdate()
                            _handleChange: (childFunction, event) ->
                                console.log event.target.value
                                this.setState { value: event.target.value }
                            _handleSubmit: (childFunction, event) ->
                                console.log 'To be Handled call submit'
                                console.log event
                                console.log childFunction
                                console.log this.refs
                                that.call(myContract, childFunction, this.refs)
                            render: ->
                                self = this
                                React.createElement 'div', { htmlFor: 'test' }, this.state.childFunctions.map((childFunction, i) ->
                                    React.createElement 'form', { onSubmit: self._handleSubmit.bind(this, childFunction[0]), key: i },
                                        React.createElement 'input', { type: 'submit', readOnly: 'true', value: childFunction[0] }
                                        childFunction[1].map((childInput, j) ->
                                            React.createElement 'input', { tye: 'text', handleChange: self._handleChange, placeholder: childInput[0] + ' ' + childInput[1], ref: if childFunction[0] then childFunction[0][j] else "Constructor" }
                                        )


                                )
                        )

