From 1d8a9cf01c2b45b49f999e0fc8b9a18bf0f34cc9 Mon Sep 17 00:00:00 2001 From: Jordan Hrycaj Date: Fri, 25 Mar 2022 09:11:05 +0000 Subject: [PATCH] Update eth/p2p/rlpx.nim Co-authored-by: Kim De Mey --- eth/p2p/rlpx.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/p2p/rlpx.nim b/eth/p2p/rlpx.nim index a3afe96..897cf57 100644 --- a/eth/p2p/rlpx.nim +++ b/eth/p2p/rlpx.nim @@ -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)`