LoginSignup
1
4

More than 5 years have passed since last update.

Truffleでデプロイ時にエラー

Last updated at Posted at 2017-09-14

truffleでデプロイ時にコンソールで下記のようなエラーがでる場合があります。

Error encountered, bailing. Network state unknown. Review successful transactions manually.
Error: The contract code couldn't be stored, please check your gas amount.

上記のエラーの原因をそのまま鵜呑みにして調べても、
abstractのcontractをデプロイしているからだとか、そんな感じなんですが、

自分がハマった原因はデプロイするcontractのconstructorで、

require(_startBlock >= block.number);
require(_endBlock >= _startBlock);
require(_rate > 0);
require(_wallet != 0x0);

みたいなところがあって、requireが満たせておらず、上記のエラーが出てデプロイできてませんでした。

悲しいハマり方。。。
でももうちょっと良いエラーログ出してほしいものだ。。。

1
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
4