0

I use pragma 0.6.2. I am trying copile in truffle code which contain this lines:

fallback() external payable{}

I an getting error:

The payable fallback function is defined here. fallback() external payable{} ^---------------------------^

  • That snippet of code by itself compiles just fine. The error if exists should be the surrounding code. – Ismael Jul 3 at 20:08
  • Thanks. I have solved problem. I changed fallback() on receive(); – Guest Jul 3 at 20:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.