titanoboa icon indicating copy to clipboard operation
titanoboa copied to clipboard

feat: Add block and timestamp helper properties to env

Open DanielSchiavini opened this issue 9 months ago • 2 comments

What I did

Add block and timestamp helper properties to env

How I did it

Passing the call to evm.patch

How to verify it

Tests are included

Description for the changelog

  • Add block and timestamp helper properties to env

Cute Animal Picture

image

DanielSchiavini avatar May 14 '24 06:05 DanielSchiavini

maybe instead of dynamically creating the class, we can have BlockEnv inherit from something like MagicAttributeSet?

charles-cooper avatar May 15 '24 13:05 charles-cooper

also i think if we are going to do this we should plan to do it for everything in the patcher.

charles-cooper avatar May 15 '24 13:05 charles-cooper