mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 09:26:38 +00:00
18 lines
481 B
Nim
18 lines
481 B
Nim
import
|
|
ethtypes
|
|
|
|
func parseCmdArg*(T: type Address, input: TaintedString): T
|
|
{.raises: [ValueError, Defect].} =
|
|
fromHex(T, string input)
|
|
|
|
func completeCmdArg*(T: type Address, input: TaintedString): seq[string] =
|
|
return @[]
|
|
|
|
func parseCmdArg*(T: type BlockHash, input: TaintedString): T
|
|
{.raises: [ValueError, Defect].} =
|
|
fromHex(T, string input)
|
|
|
|
func completeCmdArg*(T: type BlockHash, input: TaintedString): seq[string] =
|
|
return @[]
|
|
|