Skip to content

Commit 9d4618a

Browse files
Fix SimulateActions State Keys (#1918)
1 parent 23fa160 commit 9d4618a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/jsonrpc/server.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package jsonrpc
66
import (
77
"errors"
88
"fmt"
9+
"maps"
910
"net/http"
1011
"time"
1112

@@ -330,7 +331,7 @@ func (j *JSONRPCServer) SimulateActions(
330331
if err != nil {
331332
return err
332333
}
333-
actionResult.StateKeys = scope.StateKeys()
334+
actionResult.StateKeys = maps.Clone(scope.StateKeys())
334335
reply.ActionResults = append(reply.ActionResults, actionResult)
335336
// Reset state keys for the next action
336337
clear(scope)

0 commit comments

Comments
 (0)