Update eth/p2p/rlpx.nim

Co-authored-by: Kim De Mey <kim.demey@gmail.com>
This commit is contained in:
Jordan Hrycaj 2022-03-25 09:11:05 +00:00 committed by GitHub
parent 944d7a4069
commit 1d8a9cf01c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ type
DisconnectionReasonList = object
value: DisconnectionReason
proc read(rlp: var Rlp; Q: type DisconnectionReasonList): Q
{.raises: [Defect,RlpError].} =
proc read(rlp: var Rlp; T: type DisconnectionReasonList): T
{.raises: [Defect, RlpError].} =
## Rlp mixin: `DisconnectionReasonList` parser
if rlp.isList:
# Be strict here: The expression `rlp.read(DisconnectionReasonList)`