mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-06 23:53:09 +00:00
fix a wrong rebase
This commit is contained in:
parent
26953344c3
commit
8bb6fdd3bf
@ -16,7 +16,7 @@ proc encodeQuantity*(value: SomeUnsignedInt): string =
|
||||
result = "0x" & hValue
|
||||
|
||||
func hasHexHeader*(value: string): bool =
|
||||
if strVal != "" and strVal[0] == '0' and strVal[1] in {'x', 'X'} and strVal.len > 2: true
|
||||
if value != "" and value[0] == '0' and value[1] in {'x', 'X'} and value.len > 2: true
|
||||
else: false
|
||||
|
||||
template hasHexHeader*(value: HexDataStr|HexQuantityStr): bool =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user