Skip to content

Commit 89a6137

Browse files
committed
chore: fix some comments
Signed-off-by: toofooboo <cmaker@foxmail.com>
1 parent 996d70b commit 89a6137

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func ParseQueryParams(r *http.Request) (QueryParams, error) {
130130
}
131131

132132
func GetChainId(c *gin.Context) (*big.Int, error) {
133-
// TODO: check chainId agains the chain-service to ensure it's valid
133+
// TODO: check chainId against the chain-service to ensure it's valid
134134
chainId := c.Param("chainId")
135135
chainIdInt, err := strconv.ParseUint(chainId, 10, 64)
136136
if err != nil {

internal/common/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ var disallowedPatterns = []string{
176176
`(?i)\b(UNION|INSERT|DELETE|UPDATE|DROP|CREATE|ALTER|TRUNCATE|EXEC|;|--)`,
177177
}
178178

179-
// validateQuery checks the query for disallowed patterns and ensures only allowed functions are used.
179+
// ValidateQuery checks the query for disallowed patterns and ensures only allowed functions are used.
180180
func ValidateQuery(query string) error {
181181
// Check for disallowed patterns
182182
for _, pattern := range disallowedPatterns {

0 commit comments

Comments
 (0)