Skip to content

Commit

Permalink
fixes after second review
Browse files Browse the repository at this point in the history
  • Loading branch information
miiu96 committed Apr 25, 2024
1 parent 1db1214 commit 3b3247f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/facade/simulatorFacade.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (sf *simulatorFacade) SetStateMultiple(stateSlice []*dtos.AddressState) err

// SetStateMultipleOverwrite will set the entire state for the provided address and cleanup the old state of the provided addresses
func (sf *simulatorFacade) SetStateMultipleOverwrite(stateSlice []*dtos.AddressState) error {
accounts := make([]string, 0)
accounts := make([]string, 0, len(stateSlice))
for _, state := range stateSlice {
accounts = append(accounts, state.Address)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/proxy/api/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (ep *endpointsProcessor) setStateMultipleOverwrite(c *gin.Context) {

err = ep.facade.SetStateMultipleOverwrite(stateSlice)
if err != nil {
shared.RespondWithBadRequest(c, fmt.Sprintf("cannot set state, error: %s", err.Error()))
shared.RespondWithBadRequest(c, fmt.Sprintf("cannot overwrite state, error: %s", err.Error()))
return
}

Expand Down

0 comments on commit 3b3247f

Please sign in to comment.