From ead71d7f87c17977b1a973892646319a1cd7fa43 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Wed, 1 Dec 2021 11:18:41 +0100 Subject: [PATCH] Work around overload resolution bug in Nim 1.2.14 --- contractabi/decoding.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contractabi/decoding.nim b/contractabi/decoding.nim index e9d2cb3..cdf1bd3 100644 --- a/contractabi/decoding.nim +++ b/contractabi/decoding.nim @@ -64,8 +64,8 @@ func decode*(decoder: var AbiDecoder, T: type bool): T = func decode*(decoder: var AbiDecoder, T: type enum): T = T(decoder.read(uint64)) -func decode*[I: static int](decoder: var AbiDecoder, T: type array[I,byte]): T = - result[0..