Skip to content

Commit

Permalink
Merge pull request #330 from Emurgo/ruslan/deprecate-multiassets-getter
Browse files Browse the repository at this point in the history
Deprecating `TransactionBody::multiassets`
  • Loading branch information
vsubhuman committed Jan 15, 2022
2 parents c1e7b72 + 591ecab commit ffe663e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,20 @@ impl TransactionBody {
self.mint = Some(mint.clone())
}

pub fn multiassets(&self) -> Option<Mint> {
pub fn mint(&self) -> Option<Mint> {
self.mint.clone()
}

/// This function returns the mint value of the transaction
/// Use `.mint()` instead.
#[deprecated(
since = "10.0.0",
note = "Weird naming. Use `.mint()`"
)]
pub fn multiassets(&self) -> Option<Mint> {
self.mint()
}

pub fn set_script_data_hash(&mut self, script_data_hash: &ScriptDataHash) {
self.script_data_hash = Some(script_data_hash.clone())
}
Expand Down

0 comments on commit ffe663e

Please sign in to comment.