Skip to content

Commit

Permalink
Changing get_mint() to mint()
Browse files Browse the repository at this point in the history
  • Loading branch information
vsubhuman committed Jan 15, 2022
1 parent 0381af5 commit 591ecab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rust/src/lib.rs
Expand Up @@ -305,18 +305,18 @@ impl TransactionBody {
self.mint = Some(mint.clone())
}

pub fn get_mint(&self) -> Option<Mint> {
pub fn mint(&self) -> Option<Mint> {
self.mint.clone()
}

/// This function returns the mint value of the transaction
/// Use `get_mint` instead.
/// Use `.mint()` instead.
#[deprecated(
since = "10.0.0",
note = "Weird naming. Use `get_mint`"
note = "Weird naming. Use `.mint()`"
)]
pub fn multiassets(&self) -> Option<Mint> {
self.get_mint()
self.mint()
}

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

0 comments on commit 591ecab

Please sign in to comment.