diff --git a/src/Nethermind/Nethermind.Evm/CodeAnalysis/CodeInfo.cs b/src/Nethermind/Nethermind.Evm/CodeAnalysis/CodeInfo.cs index 1e2274477b5d..75a16c118201 100644 --- a/src/Nethermind/Nethermind.Evm/CodeAnalysis/CodeInfo.cs +++ b/src/Nethermind/Nethermind.Evm/CodeAnalysis/CodeInfo.cs @@ -20,6 +20,14 @@ private CodeInfo() _analyzer = null; } + protected CodeInfo(IPrecompile precompile, int version, ReadOnlyMemory code) + { + Precompile = precompile; + Version = version; + Code = code; + _analyzer = null; + } + // Eof protected CodeInfo(int version, ReadOnlyMemory code) { @@ -56,7 +64,7 @@ public bool ValidateJump(int destination) => _analyzer?.ValidateJump(destination) ?? false; /// - /// Gets the version of the code format. + /// Gets the version of the code format. /// The default implementation returns 0, representing a legacy code format or non-EOF code. /// public int Version { get; } = 0;