             block = new EthJSBlock({
                     header: {
                         timestamp: new Date().getTime() / 1000 | 0,
-                        number: @vmBlockNumber
+                        number: that.vmBlockNumber
                     },
                     transactions: [],
                     uncleHeaders: []

                                        if !error
                                            that.argsToArray self.refs, childFunction, (error, argArray) ->
                                                if !error
                                                    console.log "Will call"
                                                    # Buffer.concat([ ethJSABI.methodID(Method Name, input variable types), ethJSABI.rawEncode(input variable types, input variables) ]).toString('hex')
                                                    buffer = Buffer.concat([ ethJSABI.methodID(childFunction, typArray), ethJSABI.rawEncode(typArray, argArray) ]).toString('hex')
                                                    console.log buffer
                                                    #that.call(myContract, childFunction, argArray)
                                render: ->
                                    self = this
                                    React.createElement 'div', { htmlFor: 'contractFunctions' }, this.state.childFunctions.map((childFunction, i) ->


    addAccounts: (keyArr) ->
        accounts = []
        # prepare accounts from key and return accounts array
        for key of keyArr
            privateKey = new Buffer(keyArr[key], 'hex')
            address = ethJSUtil.privateToAddress(privateKey)
            VM.stateManager.putAccountBalance address, 'f00000000000000001', (error, callback) ->
            vmAccounts['0x' + address.toString('hex')] = { privateKey: privateKey, nonce: 0 }
            accounts.push('0x' + address.toString('hex'))
        accounts
