diff --git a/src/Nethermind/Nethermind.Evm/EvmStack.cs b/src/Nethermind/Nethermind.Evm/EvmStack.cs index e5800bebeec..0480f29e20d 100644 --- a/src/Nethermind/Nethermind.Evm/EvmStack.cs +++ b/src/Nethermind/Nethermind.Evm/EvmStack.cs @@ -354,7 +354,9 @@ private readonly void Trace(int depth) { for (int i = depth; i > 0; i--) { - _tracer.ReportStackPush(Unsafe.As(ref _words[Head - i])); + Word trace = _words[Head - i]; + Reshuffle(ref trace); + _tracer.ReportStackPush(MemoryMarshal.CreateSpan(ref Unsafe.As(ref trace), WordSize)); } } } diff --git a/src/Nethermind/Nethermind.Evm/Tracing/ITxTracer.cs b/src/Nethermind/Nethermind.Evm/Tracing/ITxTracer.cs index e407fa36627..8e038a6691b 100644 --- a/src/Nethermind/Nethermind.Evm/Tracing/ITxTracer.cs +++ b/src/Nethermind/Nethermind.Evm/Tracing/ITxTracer.cs @@ -218,18 +218,6 @@ public interface ITxTracer : IWorldStateTracer, IDisposable /// Depends on void ReportStackPush(in ReadOnlySpan stackItem); - /// - /// - /// - /// - void ReportStackPush(in UInt256 value) - { - if (BitConverter.IsLittleEndian) - { - // The platform is little endian, requires conversion. - } - } - /// /// /// diff --git a/src/Nethermind/Nethermind.Evm/VirtualMachine.cs b/src/Nethermind/Nethermind.Evm/VirtualMachine.cs index 503a0ae9ed1..0b4d1025760 100644 --- a/src/Nethermind/Nethermind.Evm/VirtualMachine.cs +++ b/src/Nethermind/Nethermind.Evm/VirtualMachine.cs @@ -784,7 +784,8 @@ private CallResult ExecuteCode