@@ -652,26 +652,43 @@ func TestShanghaiValidateTx(t *testing.T) {
652652 expected txpoolcfg.DiscardReason
653653 dataLen int
654654 isShanghai bool
655+ creation bool
655656 }{
656657 "no shanghai" : {
657658 expected : txpoolcfg .Success ,
658659 dataLen : 32 ,
659660 isShanghai : false ,
661+ creation : true ,
660662 },
661663 "shanghai within bounds" : {
662664 expected : txpoolcfg .Success ,
663665 dataLen : 32 ,
664666 isShanghai : true ,
667+ creation : true ,
665668 },
666- "shanghai exactly on bound" : {
669+ "shanghai exactly on bound - create tx " : {
667670 expected : txpoolcfg .Success ,
668671 dataLen : fixedgas .MaxInitCodeSize ,
669672 isShanghai : true ,
673+ creation : true ,
670674 },
671- "shanghai one over bound" : {
675+ "shanghai one over bound - create tx " : {
672676 expected : txpoolcfg .InitCodeTooLarge ,
673677 dataLen : fixedgas .MaxInitCodeSize + 1 ,
674678 isShanghai : true ,
679+ creation : true ,
680+ },
681+ "shanghai exactly on bound - calldata tx" : {
682+ expected : txpoolcfg .Success ,
683+ dataLen : fixedgas .MaxInitCodeSize ,
684+ isShanghai : true ,
685+ creation : false ,
686+ },
687+ "shanghai one over bound - calldata tx" : {
688+ expected : txpoolcfg .Success ,
689+ dataLen : fixedgas .MaxInitCodeSize + 1 ,
690+ isShanghai : true ,
691+ creation : false ,
675692 },
676693 }
677694
@@ -708,7 +725,7 @@ func TestShanghaiValidateTx(t *testing.T) {
708725 FeeCap : * uint256 .NewInt (21000 ),
709726 Gas : 500000 ,
710727 SenderID : 0 ,
711- Creation : true ,
728+ Creation : test . creation ,
712729 }
713730
714731 txns := types.TxSlots {
0 commit comments