Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt committed Dec 26, 2023
1 parent 02cb6d2 commit e432f7a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 3 additions & 1 deletion cardano/sdk/rust/src/mint_redeemer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ mod tests {
#[test]
fn test_mint_redeemer() {
let mint_redeemer = vec![
MintRedeemer::MintTokens { total: BigInt::from(253) },
MintRedeemer::MintTokens {
total: BigInt::from(253),
},
MintRedeemer::BurnTokens,
];
for redeem in mint_redeemer.into_iter() {
Expand Down
5 changes: 4 additions & 1 deletion cardano/sdk/rust/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ impl TryFrom<PlutusData> for Owner {
)]
pub enum Status {
Locked,
Unlocking { out_ref: OutRef, for_how_long: BigInt },
Unlocking {
out_ref: OutRef,
for_how_long: BigInt,
},
}

impl Status {
Expand Down
9 changes: 7 additions & 2 deletions cardano/sdk/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ impl MintRedeemer {

pub fn as_mint_tokens(&self) -> Option<cml_chain_wasm::utils::BigInt> {
match &self.0 {
cardano_projected_nft_sdk::MintRedeemer::MintTokens{ total } => Some(total.clone().into()),
cardano_projected_nft_sdk::MintRedeemer::MintTokens { total } => {
Some(total.clone().into())
}
_ => None,
}
}
Expand Down Expand Up @@ -371,7 +373,10 @@ impl Status {
cardano_projected_nft_sdk::Status::Unlocking {
out_ref,
for_how_long,
} => Some(UnlockingStatus(out_ref.clone().into(), for_how_long.clone().into())),
} => Some(UnlockingStatus(
out_ref.clone().into(),
for_how_long.clone().into(),
)),
_ => None,
}
}
Expand Down

0 comments on commit e432f7a

Please sign in to comment.