Encode-Club-Solidity-Foundations / Lesson-03

4 stars 7 forks source link

interfaces #15

Open FFFra opened 1 year ago

FFFra commented 1 year ago

Hello, everyone! Thank you for these amazing classes and congratulations.

Just a few questions:

Cheers! Looking forward for tomorrow

MatheusDaros commented 1 year ago

Hello @FFFra

Thanks for your questions.

I don't get how can I interact with a third Interface. Do I need to "import" it somehow to my code?

You can copy the code of the interface for your contract to use it in other places in that same file. To avoid copying the code, you could import another file, that would do quite the same effect.

Also I noticed the interface names are "Isomething", is that mandatory or just a convention?

It is just a convention to keep the code more organized.

FFFra commented 1 year ago

thank u so much!