Open monyarm opened 2 years ago
encodeBytes
is an application-defined proc. You need to write it yourself for the types you use.
I do agree that this should be mentioned in the README
See for example: https://github.com/status-im/nimbus-eth2/blob/039bece9175104b5c87a8c2ff6b1eafae731b05e/beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim#L1906-L1942=
presto uses the proc, but doesn't define it outside of tests/helpers