Skip to content

Commit 591ecab

Browse files
committed
Changing get_mint() to mint()
1 parent 0381af5 commit 591ecab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rust/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,18 +305,18 @@ impl TransactionBody {
305305
self.mint = Some(mint.clone())
306306
}
307307

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

312312
/// This function returns the mint value of the transaction
313-
/// Use `get_mint` instead.
313+
/// Use `.mint()` instead.
314314
#[deprecated(
315315
since = "10.0.0",
316-
note = "Weird naming. Use `get_mint`"
316+
note = "Weird naming. Use `.mint()`"
317317
)]
318318
pub fn multiassets(&self) -> Option<Mint> {
319-
self.get_mint()
319+
self.mint()
320320
}
321321

322322
pub fn set_script_data_hash(&mut self, script_data_hash: &ScriptDataHash) {

0 commit comments

Comments
 (0)