Skip to content

Commit

Permalink
cargo fmt on wasm too
Browse files Browse the repository at this point in the history
  • Loading branch information
rooooooooob committed Apr 30, 2024
1 parent d0a5263 commit 0e8c3e7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions multi-era/wasm/src/babbage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -731,13 +731,18 @@ impl BabbageTransactionBody {
}

pub fn set_mint(&mut self, mint: &Mint) {
self.0.mint = Some(cml_multi_era::babbage::utils::BabbageMint::from(
Into::<cml_chain::assets::Mint>::into(mint.clone())
))
self.0.mint = Some(cml_multi_era::babbage::utils::BabbageMint::from(Into::<
cml_chain::assets::Mint,
>::into(
mint.clone(),
)))
}

pub fn mint(&self) -> Option<Mint> {
self.0.mint.as_ref().map(|mint| mint.to_mint().to_owned().into())
self.0
.mint
.as_ref()
.map(|mint| mint.to_mint().to_owned().into())
}

pub fn set_script_data_hash(&mut self, script_data_hash: &ScriptDataHash) {
Expand Down

0 comments on commit 0e8c3e7

Please sign in to comment.