Skip to content

Commit

Permalink
Add test for invalid creation transaction with too large initcode
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 authored and winsvega committed Nov 20, 2022
1 parent 6cd744b commit 1541dad
Showing 1 changed file with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,14 @@ creationTxInitCodeSizeLimit:
code: '0x60606040523615610074576000357c01'
storage: {}

# TODO this transaction is considered invalid by the latest EIP rules, it is checked by transaction tests
# TODO this can be removed
# - indexes:
# data: ':label invalid'
# gas: !!int -1
# value: !!int -1
# network:
# - 'Merge+3860'
# result:
# a94f5374fce5edbc8e2a8697c15331677e6ebf0b:
# nonce: 1
# 6295ee1b4f6dd65047762f924ecd367c17eabf8f:
# shouldnotexist: 1
- indexes:
data: ':label invalid'
network:
- 'Merge+3860'
expectException:
'Merge+3860' : 'TR_InitCodeLimitExceeded'
result:
a94f5374fce5edbc8e2a8697c15331677e6ebf0b:
nonce: 0
6295ee1b4f6dd65047762f924ecd367c17eabf8f:
shouldnotexist: 1

0 comments on commit 1541dad

Please sign in to comment.