UNPKG

@openzeppelin/contracts-ui-builder-adapter-midnight

Version:
17 lines (15 loc) 549 B
import { logger } from '@openzeppelin/contracts-ui-builder-utils'; /** * Validate a Midnight blockchain address * @param _address The address to validate * @returns Whether the address is a valid Midnight address */ export function isValidAddress(_address: string): boolean { // TODO: Implement Midnight address validation when chain specs are available // For now, return true to avoid blocking development logger.warn( 'adapter-midnight', 'isValidAddress for Midnight is using placeholder implementation.' ); return true; }