This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Commit c1fc7b7
committed
ABC: AccountDatabaseAPI's state_root made writable.
AccountDB (from eth/db/account.py) has a setter for the `state_root`
property, and `BaseState` (from eth/vm/state.py) forcibly sets the
state root in its revert() function.
This helps silence `mypy` error:
eth/vm/state.py:170: error: Property "state_root" defined in "AccountDatabaseAPI" is read-only
This commit has been cherry-picked from the previous PR:
7350ac31 parent 6bd7737 commit c1fc7b7
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1769 | 1769 | | |
1770 | 1770 | | |
1771 | 1771 | | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
1772 | 1782 | | |
1773 | 1783 | | |
1774 | 1784 | | |
| |||
0 commit comments