Skip to content

Commit

Permalink
add inflation metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jack committed Jul 4, 2024
1 parent ece8999 commit 9a5e874
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)
}

Check warning on line 168 in src/rgb20/issuer.rs

View check run for this annotation

Codecov / codecov/patch

src/rgb20/issuer.rs#L165-L168

Added lines #L165 - L168 were not covered by tests

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

0 comments on commit 9a5e874

Please sign in to comment.