Skip to content

Commit 5626125

Browse files
IvanBelyakoffrevitteth
andauthoredJan 27, 2025
fix: add check for tx is Create if init code size exceeds the (#1659)
limit Co-authored-by: Max Revitt <[email protected]>
1 parent d1a36ca commit 5626125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎zk/txpool/pool.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ func (p *TxPool) AddRemoteTxs(_ context.Context, newTxs types.TxSlots) {
712712
func (p *TxPool) validateTx(txn *types.TxSlot, isLocal bool, stateCache kvcache.CacheView, from common.Address) DiscardReason {
713713
isShanghai := p.isShanghai()
714714
if isShanghai {
715-
if txn.DataLen > fixedgas.MaxInitCodeSize {
715+
if txn.Creation && txn.DataLen > fixedgas.MaxInitCodeSize {
716716
return InitCodeTooLarge
717717
}
718718
}

0 commit comments

Comments
 (0)