Skip to content

Commit

Permalink
feat: Add SCALE support to VersionedTransaction type (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
conr2d authored Dec 5, 2024
1 parent 5e4ec42 commit 9022690
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sdk/src/transaction/versioned/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ use {
nostd::{cmp::Ordering, prelude::*},
serde::Serialize,
};
#[cfg(feature = "scale")]
use {
parity_scale_coodec::{Decode, Encode},
scale_info::TypeInfo,
};

mod sanitized;

Expand Down Expand Up @@ -48,6 +53,7 @@ impl TransactionVersion {
// NOTE: Serialization-related changes must be paired with the direct read at sigverify.
/// An atomic transaction
#[cfg_attr(feature = "frozen-abi", derive(AbiExample))]
#[cfg_attr(feature = "scale", derive(Decode, Encode, TypeInfo))]
#[derive(Debug, PartialEq, Default, Eq, Clone, Serialize, Deserialize)]
pub struct VersionedTransaction {
/// List of signatures
Expand Down

0 comments on commit 9022690

Please sign in to comment.