We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 97995ed + ffe663e commit f4e68c8Copy full SHA for f4e68c8
rust/src/lib.rs
@@ -309,10 +309,20 @@ impl TransactionBody {
309
self.mint = Some(mint.clone())
310
}
311
312
- pub fn multiassets(&self) -> Option<Mint> {
+ pub fn mint(&self) -> Option<Mint> {
313
self.mint.clone()
314
315
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
+
326
pub fn set_script_data_hash(&mut self, script_data_hash: &ScriptDataHash) {
327
self.script_data_hash = Some(script_data_hash.clone())
328
0 commit comments