Skip to content

Commit f7eace8

Browse files
committed
Add test for invalid creation transaction with too large initcode
1 parent f9342fb commit f7eace8

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

src/GeneralStateTestsFiller/stEIP3860/creationTxInitCodeSizeLimitFiller.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,14 @@ creationTxInitCodeSizeLimit:
7676
code: '0x60606040523615610074576000357c01'
7777
storage: {}
7878

79-
# TODO this transaction is considered invalid by the latest EIP rules, it is checked by transaction tests
80-
# TODO this can be removed
81-
# - indexes:
82-
# data: ':label invalid'
83-
# gas: !!int -1
84-
# value: !!int -1
85-
# network:
86-
# - 'Merge+3860'
87-
# result:
88-
# a94f5374fce5edbc8e2a8697c15331677e6ebf0b:
89-
# nonce: 1
90-
# 6295ee1b4f6dd65047762f924ecd367c17eabf8f:
91-
# shouldnotexist: 1
79+
- indexes:
80+
data: ':label invalid'
81+
network:
82+
- 'Merge+3860'
83+
expectException:
84+
'Merge+3860' : 'TR_InitCodeLimitExceeded'
85+
result:
86+
a94f5374fce5edbc8e2a8697c15331677e6ebf0b:
87+
nonce: 0
88+
6295ee1b4f6dd65047762f924ecd367c17eabf8f:
89+
shouldnotexist: 1

0 commit comments

Comments
 (0)