Skip to content

Commit

Permalink
asset: expose asset ID option on specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeTsagk committed Jan 23, 2025
1 parent e754cdd commit 956b40b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions asset/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,11 @@ func (s *Specifier) WhenId(f func(ID)) {
s.id.WhenSome(f)
}

// ID returns the underlying asset ID option of the specifier.
func (s *Specifier) ID() fn.Option[ID] {
return s.id
}

// WhenGroupPubKey executes the given function if asset group public key field
// is specified.
func (s *Specifier) WhenGroupPubKey(f func(btcec.PublicKey)) {
Expand Down

0 comments on commit 956b40b

Please sign in to comment.