diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 8b14c93d..819c9154 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -305,10 +305,20 @@ impl TransactionBody { self.mint = Some(mint.clone()) } - pub fn multiassets(&self) -> Option { + pub fn mint(&self) -> Option { 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 { + self.mint() + } + pub fn set_script_data_hash(&mut self, script_data_hash: &ScriptDataHash) { self.script_data_hash = Some(script_data_hash.clone()) }