Skip to content

Commit

Permalink
Fix SimulateActions State Keys (#1918)
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoVillar authored Feb 5, 2025
1 parent 23fa160 commit 9d4618a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/jsonrpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package jsonrpc
import (
"errors"
"fmt"
"maps"
"net/http"
"time"

Expand Down Expand Up @@ -330,7 +331,7 @@ func (j *JSONRPCServer) SimulateActions(
if err != nil {
return err
}
actionResult.StateKeys = scope.StateKeys()
actionResult.StateKeys = maps.Clone(scope.StateKeys())
reply.ActionResults = append(reply.ActionResults, actionResult)
// Reset state keys for the next action
clear(scope)
Expand Down

0 comments on commit 9d4618a

Please sign in to comment.