를 통해 Rinkeby 또는 Ropsten에 스마트 계약을 배포 할 수 없습니다,하지만 난 Ropsten 또는 Rinkeby에 계약을 배포 할 때마다 적외선이 오류와 함께 실패합니다는 트러플
Running migration: 2_deploy_contracts.js
Deploying SuperHeroTokenThreeCrowdsale...
... 0x9d0da17f00192993720639abceecc2b33c5fbb9a29dd43fa6e1abd0ce6aecc5d
Error encountered, bailing. Network state unknown. Review successful transactions manually.
Error: The contract code couldn't be stored, please check your gas amount.
at Object.callback (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:314870:46)
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:35060:25
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:316808:9
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:164746:11
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:294942:9
at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:296367:13)
at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:164934:18)
at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:165224:12)
at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:165379:12)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:165339:24)
- 시스템 : 우분투 16.04
- 트러플 : V4.0.0 - beta.2
- Geth : 1.7.2 안정
- OpenZeppelyn 견고 1.3.0
truffle.js :
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
gas: 4700000,
from: '0x24182550B8630629501AC11f5568dbb7EE18dBd2',
network_id: "*" // Match any network id
},
}
};
또한 나는 내가 에테르 내 Rinkeby 계정에서의 가지고 말해야한다. 또 다른 메모 - TestRpc에 배포하면 잘 작동하지만 사용자 토큰을 구입할 수 있습니다. 모두 잘 작동합니다. 가스량을 조정하려고했지만 아무것도 바뀌지 않았습니다.
어떤 아이디어가 문제 일 수 있습니까?
geth가 완전히 동기화되지 않았거나 원격 포트가 열려 있지 않을 수 있습니다. – webjunkie
나는이 명령으로 Geth를 시작한다 :'geth --rinkeby --rpc --rpcapi eth, net, web3, personal' –