0

This question already has an answer here:

I have some question about truffle pet shop example ,here is the original link pet shop, when I work this command:truffle test , and I have some compile problem.

enter image description here

here is original code:

enter image description here

I have some compile issue that really don't understand , so I try to ask for help.

Thanks everyone read my question(help message).

marked as duplicate by Rosco Kalis, shane, Achala Dissanayake, Ismael, Richard Horrocks Mar 1 at 9:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

because this referes the object of contract so you have to convert in address:

You have to use cast :

address expected = address(this);

  • it work , really appreciate your help ..!! the compile result is "3 passing" ..! – Cheng Kao Feb 28 at 10:08
0

The final result is working ...!!

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.