Skip to content

Commit

Permalink
Add recipient to issue
Browse files Browse the repository at this point in the history
  • Loading branch information
amirmrad authored and j-mueller committed Jan 17, 2025
1 parent cc85f09 commit e4033bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/Wst/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ issueProgrammableTokenEndpoint :: forall era env m.
, MonadUtxoQuery m
)
=> IssueProgrammableTokenArgs -> m (TextEnvelopeJSON (C.Tx era))
issueProgrammableTokenEndpoint IssueProgrammableTokenArgs{itaAssetName, itaQuantity, itaIssuer} = do
let C.ShelleyAddress _network cred _stake = itaIssuer
issueProgrammableTokenEndpoint IssueProgrammableTokenArgs{itaAssetName, itaQuantity, itaIssuer, itaRecipient} = do
let C.ShelleyAddress _network cred _stake = itaRecipient
destinationCredential = C.fromShelleyPaymentCredential cred
operatorEnv <- Env.loadOperatorEnvFromAddress itaIssuer
dirEnv <- asks Env.directoryEnv
Expand Down
1 change: 1 addition & 0 deletions src/lib/Wst/Server/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ data IssueProgrammableTokenArgs =
{ itaIssuer :: C.Address C.ShelleyAddr
, itaAssetName :: AssetName
, itaQuantity :: Quantity
, itaRecipient :: C.Address C.ShelleyAddr
}
deriving stock (Eq, Show, Generic)

Expand Down

0 comments on commit e4033bb

Please sign in to comment.