Update len to template
This commit is contained in:
parent
ae03675b07
commit
74a4ab6efc
|
@ -32,7 +32,7 @@ type
|
|||
WhisperIdentityStr* = distinct string # 60 bytes
|
||||
HexStrings = HexQuantityStr | HexDataStr | EthAddressStr | EthHashStr | WhisperIdentityStr
|
||||
|
||||
func len*(value: HexStrings): int = value.string.len
|
||||
template len*(value: HexStrings): int = value.string.len
|
||||
|
||||
# Hex validation
|
||||
|
||||
|
|
Loading…
Reference in New Issue