2016-10-30 34 views
2

上イーサリアム契約のために「トリュフ移行」中にエラーを取得はチュートリアルで述べたイーサリアム契約を試しながらtestrpc

[email protected]:~/Blockchain/Ethereum/conference$ truffle migrate 
Running migration: 1_initial_migration.js 
    Deploying Migrations... 
Error encountered, bailing. Network state unknown. Review successful transactions manually. 
Error: Server error 
    at Object.module.exports.InvalidResponse (/usr/local/lib/node_modules/truffle/node_modules/ether-pudding/node_modules/web3/lib/web3/errors.js:35:16) 
    at /usr/local/lib/node_modules/truffle/node_modules/ether-pudding/node_modules/web3/lib/web3/requestmanager.js:86:36 
    at [object Object].request.onreadystatechange (/usr/local/lib/node_modules/truffle/node_modules/web3/lib/web3/httpprovider.js:114:13) 
    at [object Object].dispatchEvent (/usr/local/lib/node_modules/truffle/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:591:25) 
    at setState (/usr/local/lib/node_modules/truffle/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:610:14) 
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:447:13) 
    at emitNone (events.js:72:20) 
    at IncomingMessage.emit (events.js:166:7) 
    at endReadableNT (_stream_readable.js:905:12) 
    at nextTickCallbackWith2Args (node.js:441:9) 
    at process._tickDomainCallback (node.js:396:17) 

testrpcが稼働している、と私はトリュフの移行を実行したときにtestrpcの端末で2つの行を次を参照してください。

127.0.0.1 - - [2016-10-21 09:38:17] "POST/HTTP/1.1" 200 718 0.001741 
127.0.0.1 - - [2016-10-21 09:38:17] "POST/HTTP/1.1" 200 493 0.042596 

は、私が構成で何をしないのですか? 私のソースコードは、https://github.com/manindra23/conference-contract/tree/develop

答えて

0

であるあなたはこのよう

ファイルtruffle.jsにネットワーク設定を与えることを試みることができ、

networks: { 
    development: { 
     host: 'localhost', 
     port: 8545, 
     network_id: '*' // Match any network id 
    } 
    } 
関連する問題