Skip to content

Commit ffe663e

Browse files
authored
Merge pull request #330 from Emurgo/ruslan/deprecate-multiassets-getter
Deprecating `TransactionBody::multiassets`
2 parents c1e7b72 + 591ecab commit ffe663e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

rust/src/lib.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,20 @@ impl TransactionBody {
305305
self.mint = Some(mint.clone())
306306
}
307307

308-
pub fn multiassets(&self) -> Option<Mint> {
308+
pub fn mint(&self) -> Option<Mint> {
309309
self.mint.clone()
310310
}
311311

312+
/// This function returns the mint value of the transaction
313+
/// Use `.mint()` instead.
314+
#[deprecated(
315+
since = "10.0.0",
316+
note = "Weird naming. Use `.mint()`"
317+
)]
318+
pub fn multiassets(&self) -> Option<Mint> {
319+
self.mint()
320+
}
321+
312322
pub fn set_script_data_hash(&mut self, script_data_hash: &ScriptDataHash) {
313323
self.script_data_hash = Some(script_data_hash.clone())
314324
}

0 commit comments

Comments
 (0)