Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yerke26 committed Oct 30, 2024
1 parent c2617f5 commit 388624f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tools/Evm/Evm/t8n/JsonTypes/EnvJson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class EnvJson
public ulong CurrentTimestamp { get; set; }
public Withdrawal[] Withdrawals { get; set; } = [];

public string? CurrentRandom { get; set; }
public UInt256? CurrentRandom { get; set; }
public ulong ParentTimestamp { get; set; }
public UInt256? ParentDifficulty { get; set; }
public UInt256? CurrentBaseFee { get; set; }
Expand All @@ -34,11 +34,10 @@ public class EnvJson

public Hash256? GetCurrentRandomHash256()
{
// if (CurrentRandom == null)
return null;
if (CurrentRandom == null) return null;

// Span<byte> bytes = stackalloc byte[32];
// CurrentRandom?.ToBigEndian(bytes);
// return new Hash256(bytes);
Span<byte> bytes = stackalloc byte[32];
CurrentRandom?.ToBigEndian(bytes);
return new Hash256(bytes);
}
}

0 comments on commit 388624f

Please sign in to comment.