We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61c7439 commit fd3f878Copy full SHA for fd3f878
src/utils/addressOrIdCheck.ts
@@ -1,7 +1,7 @@
1
import { ADDRESS_LENGTH, ID_OR_HASH_LENGTH } from '@/config';
2
3
export function isValidId(address: string): boolean {
4
- // Ethereum address: 66 chars, starts with 0x
+ // Transaction hash or task ID: 66 chars, starts with 0x
5
return (
6
typeof address === 'string' &&
7
address.length === ID_OR_HASH_LENGTH &&
0 commit comments