make zeroBytesRlp a constant in order to not interfere with the gcsafe effect

This commit is contained in:
Zahary Karadjov 2018-06-17 20:12:13 +03:00
parent 2363474e5c
commit e0d62ae9ba
1 changed files with 1 additions and 2 deletions

View File

@ -35,8 +35,7 @@ proc rlpFromBytes*(data: BytesRange): Rlp =
result.bytes = data result.bytes = data
result.position = 0 result.position = 0
let const zeroBytesRlp* = Rlp()
zeroBytesRlp* = Rlp()
proc rlpFromHex*(input: string): Rlp = proc rlpFromHex*(input: string): Rlp =
doAssert input.len mod 2 == 0, doAssert input.len mod 2 == 0,