Commit cfa908b
fix(levm, l1): fix hive tests rpc (lambdaclass#2176)
**Motivation**
- When executing ethereum/rpc simulation with LEVM we have errors in a
lot of tests. The error is when executing the blocks for the setup for
these tests and how we created the withdrawals requests introduced in
EIP-7002
**Description**
- First, when we execute the transactions, we weren't handling if the
account was delegated and we weren't using the correct bytecode.
For this, we add the check for delegated accounts and get the bytecode.
This is made when creating a new VM and using the function
`eip7702_get_code()`.
- Second, when creating the withdrawals requests, we were overwritting
and loosing some of the new values in the account updates. We now merge
both updates.
- When running the system contract for the withdrawals requests
introduced in EIP 7002, we were creating a new `CacheDB` instead of
using the one with updated values.
**Status**
- All RPC Hive tests were passing, but with the changed made
[here](lambdaclass#2179), 12 are failing
due to a new missing implementation.
Links to lambdaclass#2158
---------
Co-authored-by: Tomás Paradelo <[email protected]>1 parent 15bc0b1 commit cfa908b
2 files changed
+19
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
| 455 | + | |
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
467 | | - | |
468 | | - | |
| 466 | + | |
469 | 467 | | |
470 | 468 | | |
471 | 469 | | |
| |||
474 | 472 | | |
475 | 473 | | |
476 | 474 | | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
477 | 483 | | |
478 | 484 | | |
479 | 485 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
237 | | - | |
238 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
239 | 245 | | |
240 | 246 | | |
241 | 247 | | |
| |||
252 | 258 | | |
253 | 259 | | |
254 | 260 | | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | 261 | | |
263 | 262 | | |
264 | 263 | | |
| |||
0 commit comments