Skip to content

Commit f4e68c8

Browse files
authored
Merge branch 'master' into ruslan/mint-fix
2 parents 97995ed + ffe663e commit f4e68c8

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
@@ -309,10 +309,20 @@ impl TransactionBody {
309309
self.mint = Some(mint.clone())
310310
}
311311

312-
pub fn multiassets(&self) -> Option<Mint> {
312+
pub fn mint(&self) -> Option<Mint> {
313313
self.mint.clone()
314314
}
315315

316+
/// This function returns the mint value of the transaction
317+
/// Use `.mint()` instead.
318+
#[deprecated(
319+
since = "10.0.0",
320+
note = "Weird naming. Use `.mint()`"
321+
)]
322+
pub fn multiassets(&self) -> Option<Mint> {
323+
self.mint()
324+
}
325+
316326
pub fn set_script_data_hash(&mut self, script_data_hash: &ScriptDataHash) {
317327
self.script_data_hash = Some(script_data_hash.clone())
318328
}

0 commit comments

Comments
 (0)