Skip to content

Commit

Permalink
refactor recorder implementation (#1675)
Browse files Browse the repository at this point in the history
Co-authored-by: aaronbuchwald <aaron.buchwald56@gmail.com>
  • Loading branch information
tsachiherman and aaronbuchwald authored Nov 8, 2024
1 parent 5ceae19 commit fb8b6bf
Show file tree
Hide file tree
Showing 6 changed files with 272 additions and 371 deletions.
2 changes: 1 addition & 1 deletion api/jsonrpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func (j *JSONRPCServer) SimulateActions(

currentTime := time.Now().UnixMilli()
for _, action := range actions {
recorder := state.NewRecorder(currentState)
recorder := tstate.NewRecorder(currentState)
actionOutput, err := action.Execute(ctx, j.vm.Rules(currentTime), recorder, currentTime, args.Actor, ids.Empty)

var actionResult SimulateActionResult
Expand Down
97 changes: 0 additions & 97 deletions state/recorder.go

This file was deleted.

247 changes: 0 additions & 247 deletions state/recorder_test.go

This file was deleted.

Loading

0 comments on commit fb8b6bf

Please sign in to comment.