vyperlang / vyper

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

Overriding Storage Allocator Does Not Handle Stateful Modules #3989

Closed cyberthirst closed 2 months ago

cyberthirst commented 3 months ago

Version Information

OverridingStorageAllocator.set_storage_slots_with_overrides() does not handle stateful module imports and initialization properly and will not allocate storage and transient storage slots for variables or reentrant functions defined in a sub-module. The issue is only caught at the code generation stage and would most likely result in the compiler panicking.

credits: @trocher

charles-cooper commented 2 months ago

should be fixed in #3789