Closed ebrightfield closed 2 weeks ago
Thank you for contributing, can you add it in changelog please?
My pleasure, done!
Hey @ebrightfield just saw this, what is serde_with_str.rs for?
The module to serialize the signature as a string
But Signature
already derives Serialize, no?
#[repr(transparent)]
#[derive(
Serialize, Deserialize, Clone, Copy, Default, Eq, PartialEq, Ord, PartialOrd, Hash, AbiExample,
)]
pub struct Signature(GenericArray<u8, U64>);
Yeah but serialized as an array
Another simple one. Adds feature-flagged
serde
traits onTransactionMetadata
andFailedTransactionMetadata
. This will be useful for use cases involving sending the transaction results over the wire.The requisite
serde
traits are already added on struct fields coming fromsolana-sdk
. (De-)serializingSignature
to/from string.I didn't add
serde
to the default features of the crate, up to you.