mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-11 12:54:13 +00:00
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…
x
Reference in New Issue
Block a user