Skip to content

Commit

Permalink
Remove redundant ValidationException definition from EOF EIPs (ethere…
Browse files Browse the repository at this point in the history
…um#5984)

We assume one definition in EIP-3540 code is enough and other EIPs' codes reuse it.
  • Loading branch information
gumb0 authored Nov 16, 2022
1 parent 6ad97f4 commit 86597ec
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions EIPS/eip-3670.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ immediate_sizes = 256 * [0]
for opcode in range(0x60, 0x7f + 1): # PUSH1..PUSH32
immediate_sizes[opcode] = opcode - 0x60 + 1

class ValidationException(Exception):
pass

# Raises ValidationException on invalid code
def validate_code(code: bytes):
# Note that EOF1 already asserts this with the code section requirements
Expand Down
3 changes: 0 additions & 3 deletions EIPS/eip-4200.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@ immediate_sizes[0x5d] = 2 # RJUMPI
for opcode in range(0x60, 0x7f + 1): # PUSH1..PUSH32
immediate_sizes[opcode] = opcode - 0x60 + 1

class ValidationException(Exception):
pass

# Raises ValidationException on invalid code
def validate_code(code: bytes):
# Note that EOF1 already asserts this with the code section requirements
Expand Down
3 changes: 0 additions & 3 deletions EIPS/eip-4750.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,6 @@ immediate_sizes[0xfb] = 2 # CALLF
for opcode in range(0x60, 0x7f + 1): # PUSH1..PUSH32
immediate_sizes[opcode] = opcode - 0x60 + 1

class ValidationException(Exception):
pass

# Validate EOF code.
# Raises ValidationException on invalid code
def validate_eof(code: bytes):
Expand Down

0 comments on commit 86597ec

Please sign in to comment.