LoginSignup
0
0

More than 5 years have passed since last update.

Remixで発生する The constructor should be payable if you send value.について

Posted at

環境

エラーメッセージ

transact to **** errored: VM error: revert.
revert  The transaction has been reverted to the initial state.
Note: The constructor should be payable if you send value.  Debug the transaction to get more information. 

このメッセージを読む限り
「トランザクションをリバートしたよ、送金するならコンストラクタにpayableつけてね」
なんだなと思って調べたが原因がわからなかった

結論

結果的に単純にロジックが間違っていて
処理の途中でrequireによってrevertされていただけだった。。。

0
0
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
0
0