Open samliok opened 10 months ago
This issue has become stale because it has been open 60 days with no activity. Adding the lifecycle/frozen
label will exempt this issue from future lifecycle events.
This issue has become stale because it has been open 60 days with no activity. Adding the lifecycle/frozen
label will exempt this issue from future lifecycle events.
There's a borsh function that gives you the max-size of the serialized form of T. We could create a vector with
max_size + size_of::<Len>()
capacity, wrap it instd::io::Cursor
, write out 0 as the size, check the final length, then overwrite the prefix.It's an optimization, so I think this should be done in a follow up.
_Originally posted by @richardpringle in https://github.com/ava-labs/hypersdk/pull/623#discussion_r1415706432_