fix(ante): enforce EIP-3607 after Prague, exempting only EIP-7702 delegation designations - #1111
Conversation
…egation designations.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1111 +/- ##
===========================================
- Coverage 47.09% 47.08% -0.01%
===========================================
Files 200 200
Lines 17647 17648 +1
===========================================
Hits 8310 8310
- Misses 8475 8476 +1
Partials 862 862
🚀 New features to boost your workflow:
|
|
@claude review |
|
Claude finished @JayT106's task in 1m 54s —— View job Code ReviewTasks
SummaryThis PR fixes a real bug: the Findings✅ Correctness — logic is rightThe old code: if !rules.IsPrague { // always false → block never ran
if acct.IsContract() { ... }
}The new code runs unconditionally and passes the check only for EIP-7702 delegated accounts. This is exactly the correct EIP-3607 behaviour for post-Prague chains.
|
Issue
Our current ante handler blocks accounts who holds contract code from executing an evm transaction.
However,
IsPrague = trueby default. Therefore this code block doesn't run.Solution
To allow eip7702 delegated accounts to execute evm transaction