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 c1e7b72 + 591ecab commit ffe663eCopy full SHA for ffe663e
rust/src/lib.rs
@@ -305,10 +305,20 @@ impl TransactionBody {
305
self.mint = Some(mint.clone())
306
}
307
308
- pub fn multiassets(&self) -> Option<Mint> {
+ pub fn mint(&self) -> Option<Mint> {
309
self.mint.clone()
310
311
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
+
322
pub fn set_script_data_hash(&mut self, script_data_hash: &ScriptDataHash) {
323
self.script_data_hash = Some(script_data_hash.clone())
324
0 commit comments