ethereumjs-monorepo

@ethereumjs/statemanager


@ethereumjs/statemanager / CODEHASH_PREFIX

Variable: CODEHASH_PREFIX

const CODEHASH_PREFIX: Uint8Array<ArrayBufferLike>

Defined in: merkleStateManager.ts:44

Prefix to distinguish between a contract deployed with code 0x80 and RLP([]) (also having the value 0x80).

Otherwise the creation of the code hash for the 0x80 contract will be the same as the hash of the empty trie which leads to misbehaviour in the underlying trie library.