diff --git a/beacon_chain/ssz.nim b/beacon_chain/ssz.nim index f0ea63cd0..b6a529da6 100644 --- a/beacon_chain/ssz.nim +++ b/beacon_chain/ssz.nim @@ -166,7 +166,7 @@ template enumerateSubFields(holder, fieldVar, body: untyped) = func writeVarSizeType(w: var SszWriter, value: auto) {.gcsafe.} -func beginRecord(w: var SszWriter, TT: type): auto = +func beginRecord*(w: var SszWriter, TT: type): auto = type T = TT when isFixedSize(T): FixedSizedWriterCtx()