Fix code delegation issue found in pectra devnet (#8203)

* add acceptance tests to verify that code delegations are persisted even if the tx itself fails
* set node to use bonsai, set correct nonce for code delegation, make sure revert in contract has the 2 necessary items on the stack
* Hive test fix: only add account if authority nonce is valid (0)
---------

Signed-off-by: Karim Taam <karim.t2am@gmail.com>
Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Co-authored-by: Daniel Lehrner <daniel.lehrner@consensys.net>
Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
This commit is contained in:
Karim Taam
2025-01-31 06:42:13 +01:00
committed by GitHub
parent 97a69b03c8
commit 68665db454
12 changed files with 287 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ public class CodeDelegationService {
}
/**
* Returns if the provided account has either no code set or has already delegated code.
* Returns true if the provided account has either no code set or has already delegated code.
*
* @param account the account to check.
* @return {@code true} if the account can set delegated code, {@code false} otherwise.