vyperlang / vyper

Pythonic Smart Contract Language for the EVM
https://vyperlang.org
Other
4.81k stars 788 forks source link

`flag` Can't Be Imported #4121

Open ritzdorf opened 3 months ago

ritzdorf commented 3 months ago

Version Information

While it is possible to import events and struct types both from .vy and .vyi files, it is not possible to import flags.

For interfaces, this is because InterfaceT does not hold the flags defined in the interface and hence InterfaceT.get_type_member() only returns the set of events and struct types defined.

For modules, similarly, flag types are not added to the set of members of the ModuleT at construction time.

charles-cooper commented 3 months ago

is this fixed as of https://github.com/vyperlang/vyper/pull/3871?