This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Commit 65d2c4a
committed
eth/vm/state: expect Hash32 (not bytes) in __init__ of BaseState.
Again, 99.99% cargo-culting. This just silences a `mypy` error:
eth/vm/state.py:57: error: Argument 2 to "AccountDatabaseAPI" has incompatible type "bytes"; expected "Hash32"
A valid state root will definitely be a 32-byte-long hash. Question
is if this is the right place to make sure of it; and whether that
should be made more explicit in code than being picky about a type.
This commit has been cherry-picked from previous PR:
851c1411 parent 5e6d607 commit 65d2c4a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments