mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-20 13:44:31 +00:00
## Why this should be merged There are 3 places at which we perform the same, sensitive logic to access registered payloads and as we modify more types this is likely to expand. (e.g. `types.Header`). ## How this works Introduces `pseudo.Accessor` to abstract the reusable code. ## How this was tested Existing unit tests. Note that the `types.StateAccount` tests needed a minor refactor to provide the assertions with access to the `ExtraPayloads[T]` without introducing generic types anywhere. |
||
|---|---|---|
| .. | ||
| accessor.go | ||
| constructor.go | ||
| constructor_test.go | ||
| fmt.go | ||
| fmt_test.go | ||
| reflect.go | ||
| rlp_test.go | ||
| type.go | ||
| type_test.go | ||