Commit ff72bbb
committed
refactor: Improve weight-to-gas conversion and simplify nonce validation
- Use SignedGas::from_weight_fee().to_ethereum_gas() for proper weight-to-gas
conversion that accounts for both ref_time and proof_size
- Simplify nonce validation in eip7702.rs using try_into() instead of
separate bounds check
- Compare nonces as u64 directly instead of converting back and forth with U2561 parent 9884cc8 commit ff72bbb
2 files changed
+26
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
115 | 117 | | |
116 | | - | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
125 | | - | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
| 128 | + | |
130 | 129 | | |
131 | | - | |
| 130 | + | |
132 | 131 | | |
133 | 132 | | |
134 | | - | |
| 133 | + | |
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1401 | 1401 | | |
1402 | 1402 | | |
1403 | 1403 | | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
1407 | 1408 | | |
1408 | | - | |
| 1409 | + | |
| 1410 | + | |
1409 | 1411 | | |
1410 | 1412 | | |
1411 | 1413 | | |
| |||
1917 | 1919 | | |
1918 | 1920 | | |
1919 | 1921 | | |
1920 | | - | |
1921 | | - | |
1922 | | - | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
1923 | 1926 | | |
1924 | | - | |
| 1927 | + | |
1925 | 1928 | | |
1926 | 1929 | | |
1927 | 1930 | | |
| |||
2076 | 2079 | | |
2077 | 2080 | | |
2078 | 2081 | | |
2079 | | - | |
2080 | | - | |
| 2082 | + | |
2081 | 2083 | | |
2082 | 2084 | | |
2083 | 2085 | | |
| |||
0 commit comments