Commit d01338e
authored
We recently narrowed the type used for `EthAddressStruct` to be `Hex`.
This actually have a huge impact on various types that depend on it.
While most of the account types are fine, the user-ops one also bubbles
up to the `TransactionController` and would require a bit more refactor
to re-type everything correctly.
For now, we'll just revert to what it was and keep them as `string` for
those types.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Touches shared Ethereum address validation/types, which can ripple
through downstream type inference and RPC param validation; behavior
should be mostly compatible but type-level impacts are broad.
>
> **Overview**
> Reverts `EthAddressStruct`’s inferred type back to `string` (while
keeping the same `0x…{40}` validation regex) to undo an unintended
breaking change that propagated into ERC-4337/user-op address-like
fields.
>
> Introduces `EthAddressStrictStruct` (Hex-typed) for callers that need
strict `Hex` inference, and updates EIP-7702 authorization tuple
validation to use this stricter struct. The changelog documents the
revert and notes `21.4.0` will be yanked.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
2b1eb24. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
1 parent f00f5be commit d01338e
3 files changed
Lines changed: 24 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
10 | 22 | | |
11 | 23 | | |
12 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
121 | | - | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
0 commit comments