revert stack

This commit is contained in:
Sina Mahmoodi 2025-02-28 15:22:03 +01:00
parent ed90dfb61a
commit f014e5792f
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ func (s *StructLog) toLegacyJSON() json.RawMessage {
Error: s.ErrorString(), Error: s.ErrorString(),
RefundCounter: s.RefundCounter, RefundCounter: s.RefundCounter,
} }
if len(s.Stack) > 0 { if s.Stack != nil {
stack := make([]string, len(s.Stack)) stack := make([]string, len(s.Stack))
for i, stackValue := range s.Stack { for i, stackValue := range s.Stack {
stack[i] = stackValue.Hex() stack[i] = stackValue.Hex()