Skip to content

Commit

Permalink
markups: Remove comment and adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedey committed Aug 7, 2024
1 parent 39ae54d commit ee74439
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions radix-transactions/src/model/versioned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ const V1_PREVIEW_TRANSACTION: u8 = 6;
const V1_LEDGER_TRANSACTION: u8 = 7;
const V1_FLASH_TRANSACTION: u8 = 8;

// TODO - change this to use #[flatten] when REP-84 is out
/// An enum of a variety of different transaction payload types
/// An enum of a variety of different transaction payload types.
/// This might see use in (eg) the Node's transaction parse API.
/// These represent the different transaction types.
#[derive(Clone, Debug, Eq, PartialEq, ManifestSbor)]
Expand Down
4 changes: 2 additions & 2 deletions sbor-tests/tests/enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ enum FlattenEnum {
#[sbor(flatten)]
A {
#[sbor(skip)]
skipped: u32,
skipped: u8,
y: (u32, MyOtherType),
},
#[sbor(flatten)]
B(#[sbor(skip)] u32, (u32,)),
B(#[sbor(skip)] u8, (u32,)),
#[sbor(flatten)]
C(MyInnerStruct),
D,
Expand Down

0 comments on commit ee74439

Please sign in to comment.