You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, just a quick (and maybe stupid) question:
How should an interface file be structured?
Eg I have an interface.vy and a contract.vy in the same folder. Contract.vy should implement interface.vy.
in my interface.vy, should there by just the public functions and events? only functions? or should there be an interface declaration... I am really confused right now...
Bonus question: where should the implements: interface be placed in contract.vy? At the top or in the interface section of of contract.vy?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, just a quick (and maybe stupid) question:
How should an interface file be structured?
Eg I have an interface.vy and a contract.vy in the same folder. Contract.vy should implement interface.vy.
in my interface.vy, should there by just the public functions and events? only functions? or should there be an interface declaration... I am really confused right now...
Bonus question: where should the
implements: interface
be placed in contract.vy? At the top or in the interface section of of contract.vy?interface.vy:
contract.vy
The compilation error I get:
It is surely obvious, but I seem to be blind atm...
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions