nomoixyz / vulcan

Development framework for Foundry projects
https://nomoixyz.github.io/vulcan/
MIT License
286 stars 18 forks source link

Use in-memory counters for generating ids/accounts/etc #180

Closed vdrg closed 1 year ago

vdrg commented 1 year ago

Instead of using storage for things such as generating "random" json ids, we can probably use something in memory so we can mark those functions as pure/view. To simplify things, we could use a global in-memory counter for this as a randomness seed.

vdrg commented 1 year ago

this might not be possible

vdrg commented 1 year ago

yup I can't see a way of doing this