Skip to content

Commit 424fe11

Browse files
committed
chore: rm unecessary comments
1 parent b4dc6c3 commit 424fe11

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/QueryBuilder.test.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -353,13 +353,10 @@ describe('from', () => {
353353
})
354354

355355
test('behavior: hex string parameters are properly quoted', async () => {
356-
// This test verifies that hex strings like 0x... are properly quoted in SQL.
357-
// Without proper quoting, PostgreSQL interprets 0x... as a bit string literal,
358-
// causing "operator does not exist: bytea = bit" errors when comparing to bytea columns.
356+
// verifies that hex strings like 0x... are properly quoted in SQL.
359357
const hexAddress = '0x4200000000000000000000000000000000000006'
360358
const chainId = 8453
361359

362-
// Capture the request to verify the SQL query
363360
const requests: Request[] = []
364361
is.on('request', (request) => {
365362
requests.push(request)
@@ -382,9 +379,6 @@ describe('from', () => {
382379
const parsedBody = JSON.parse(body)
383380
const query = parsedBody[0].query as string
384381

385-
// Verify the hex string is properly quoted in the SQL
386-
// Without the fix: WHERE "to" = 0x4200... (bit literal - causes error)
387-
// With the fix: WHERE "to" = '0x4200...' (properly quoted string)
388382
expect(query).toContain(`'${hexAddress}'`)
389383
expect(query).not.toMatch(new RegExp(`= ${hexAddress}(?!')`, 'i'))
390384
})

0 commit comments

Comments
 (0)