mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 13:24:21 +00:00
EIP-3541: Fixes typo, 0xFE -> 0xEF
This commit is contained in:
parent
0245c8e2c7
commit
8482cb3ed3
@ -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
|
debug "Contract code size exceeds EIP170", limit=EIP170_CODE_SIZE_LIMIT, actual=contractCode.len
|
||||||
return false
|
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"
|
debug "Contract code can't start with 0xEF byte"
|
||||||
return false
|
return false
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ proc writeContract*(c: Computation, fork: Fork): bool {.gcsafe.} =
|
|||||||
actual = contractCode.len
|
actual = contractCode.len
|
||||||
return false
|
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"
|
debug "Contract code can't start with 0xEF byte"
|
||||||
return false
|
return false
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user