You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(escrow): replace borsh helper with kit struct codecs
Both escrow examples wrapped a local borshSerialize(schema, data) helper
to build instruction data and to decode the Offer account. Replaces it
with getStructEncoder and getStructDecoder, matching the shape already
used in basics/close-account/native, and drops the borsh dependency.
Field widths and order were checked against each program's Rust source.
The decoder's fixed size of 113 matches Offer::LEN, and decoding the
pubkey fields with getAddressDecoder yields Address values directly, so
the tests no longer round-trip them through a raw byte array.
0 commit comments