Update len to template

This commit is contained in:
coffeepots 2018-08-24 14:20:57 +01:00 committed by zah
parent ae03675b07
commit 74a4ab6efc
1 changed files with 1 additions and 1 deletions

View File

@ -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