diff --git a/eth/db/kvstore_sqlite3.nim b/eth/db/kvstore_sqlite3.nim index b873552..9a96b68 100644 --- a/eth/db/kvstore_sqlite3.nim +++ b/eth/db/kvstore_sqlite3.nim @@ -137,7 +137,7 @@ template readResult(s: RawStmtPtr, column: cint, T: type): auto = res elif T is array: # array[N, byte]. "genericParams(T)[1]" requires 1.4 to handle nnkTypeOfExpr - when typeof(block: (var a: T; a[0])) is byte: + when typeof(default(T)[0]) is byte: var res: T let colLen = sqlite3_column_bytes(s, column)