Skip to content

Commit

Permalink
temporaly change codes.AlreadyExists to codes.InvalidArgument
Browse files Browse the repository at this point in the history
  • Loading branch information
colmazia committed Sep 27, 2023
1 parent fed540d commit 50eef1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/oracle/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ func (k Querier) RequestVerification(
}
if isValidatorReported {
return nil, status.Error(
codes.AlreadyExists,
// TODO: change this back to codes.AlreadyExists in Cosmos-SDK 0.46 version
codes.InvalidArgument,
fmt.Sprintf("validator %s already submitted data report for this request", validator),
)
}
Expand Down

0 comments on commit 50eef1c

Please sign in to comment.