Skip to content

Commit

Permalink
Merge branch 'master' into marston/avail-space
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarstonConnell authored Aug 27, 2024
2 parents 4d65639 + a9d9cb3 commit c56b2c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ linters-settings:
gosec:
excludes:
- G404
- G115

issues:
max-issues-per-linter: 0
4 changes: 4 additions & 0 deletions x/storage/keeper/grpc_query_find_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ func (k Keeper) FindFile(goCtx context.Context, req *types.QueryFindFile) (*type
return nil, status.Error(codes.InvalidArgument, "invalid request")
}

if req.Merkle == nil {
return nil, status.Error(codes.InvalidArgument, "no merkle hash provider")
}

var ips []string

store := prefix.NewStore(ctx.KVStore(k.storeKey), types.FilesMerklePrefix(req.Merkle))
Expand Down

0 comments on commit c56b2c4

Please sign in to comment.