New answers tagged

0 votes

Do modifiers work in interfaces

What you can do is to use a virtual contract as an "interface" (as suggested above). The scheme is: abstract contract A { modifier adminOnly { /// checks admin _; } ...
user avatar
0 votes

Variable declaration

the compiler has an expected layout for the order in which the code is laid out Layout contract elements in the following order: Pragma statements Import statements Interfaces Libraries Contracts ...
user avatar

Top 50 recent answers are included