EIP-3541: Fixes typo, 0xFE -> 0xEF

This commit is contained in:
jangko 2021-06-30 07:54:39 +07:00
parent 0245c8e2c7
commit 8482cb3ed3
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
2 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ proc writeContract*(c: Computation, fork: Fork): bool {.gcsafe.} =
debug "Contract code size exceeds EIP170", limit=EIP170_CODE_SIZE_LIMIT, actual=contractCode.len
return false
if fork >= FkLondon and contractCode[0] == 0xFE.byte:
if fork >= FkLondon and contractCode[0] == 0xEF.byte:
debug "Contract code can't start with 0xEF byte"
return false

View File

@ -175,7 +175,7 @@ proc writeContract*(c: Computation, fork: Fork): bool {.gcsafe.} =
actual = contractCode.len
return false
if fork >= FkLondon and contractCode[0] == 0xFE.byte:
if fork >= FkLondon and contractCode[0] == 0xEF.byte:
debug "Contract code can't start with 0xEF byte"
return false