Open tituszban opened 2 years ago
Yeah this would have been addressed in a stalled update that used serial-as, which handles this properly. You can use it instead of @nearBindgen
to handle your serialization. Except you would need to change the type of the PersistentVector's generic to Uint8Array
and then manually serialize and de-serialize.
Alright. I have made it work by creating an intermediary serialiseable class. But regardless it's not great that this is not clear. I've raise a PR here, so that at least the docs reflect this limitation: https://github.com/near/docs/pull/983
As detailed on [StackOverflow](https://stackoverflow.com/questions/70916471/does-persistentvector-not-support-child-classes)
@nearBindgen
doesn't seem to support child classes.To Reproduce
It throws the following error:
Expected behavior
@nearBindgen
supports complex inheritenceDesktop (please complete the following information):
near-sdk-as
: 3.2.3