nim-web3/web3/confutils_defs.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 @[]