Skip to content

Commit

Permalink
Merge pull request #7 from cymqqqq/add-inflation-asset-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky authored Jul 11, 2024
2 parents ece8999 + 9a5e874 commit 6072373
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rgb20/issuer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ impl PrimaryIssue {
Ok(self)
}

pub fn add_inflation_metadata(mut self, amount: Amount) -> Result<Self, IssuerError> {
self.builder = self.builder.add_metadata("allowedInflation", amount)?;
Ok(self)
}

pub fn allocate<O: TxOutpoint>(
mut self,
method: Method,
Expand Down

0 comments on commit 6072373

Please sign in to comment.