mirror of https://github.com/status-im/nim-rlp.git
make zeroBytesRlp a constant in order to not interfere with the gcsafe effect
This commit is contained in:
parent
2363474e5c
commit
e0d62ae9ba
3
rlp.nim
3
rlp.nim
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue