Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(primitvies): remove roundtrip-safe structs from primitives #605

Open
scarmuega opened this issue Feb 18, 2025 · 2 comments
Open
Assignees

Comments

@scarmuega
Copy link
Member

No description provided.

@sterraf
Copy link
Contributor

sterraf commented Feb 20, 2025

It seems necessary to implement the corresponding serde traits for KeepRaw, in order to have the same functionality. Should they be "transparent", i.e., ignoring the CBOR data? Or the derived ones for KeepRaw work well?

Today, derived traits are not the same for Minted vs plain structs:

#[derive(Serialize, Deserialize, Encode, Decode, Debug)]
pub struct Tx {
    ...

vs

#[derive(Encode, Decode, Debug, Clone)]
pub struct MintedTx<'b> {
    ...

@scarmuega
Copy link
Member Author

@sterraf KeepRaw should be transparent for serde.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants