(hex: string)
| 56 | |
| 57 | // normalize hex string to lowercase with 0x prefix |
| 58 | function normalizeHex(hex: string): string { |
| 59 | hex = hex.toLowerCase(); |
| 60 | if (!hex.startsWith('0x')) { |
| 61 | hex = '0x' + hex; |
| 62 | } |
| 63 | return hex; |
| 64 | } |
| 65 | |
| 66 | // config-based backend |
| 67 | class ConfigBackend { |
no outgoing calls
no test coverage detected