Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/Nethermind/Nethermind.Evm/CodeAnalysis/CodeInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ private CodeInfo()
_analyzer = null;
}

protected CodeInfo(IPrecompile precompile, int version, ReadOnlyMemory<byte> code)
{
Precompile = precompile;
Version = version;
Code = code;
_analyzer = null;
}

// Eof
protected CodeInfo(int version, ReadOnlyMemory<byte> code)
{
Expand Down Expand Up @@ -56,7 +64,7 @@ public bool ValidateJump(int destination)
=> _analyzer?.ValidateJump(destination) ?? false;

/// <summary>
/// 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.
/// </summary>
public int Version { get; } = 0;
Expand Down