Skip to content

Commit

Permalink
Check PT tokens are well distributed off-chain during observe init tx
Browse files Browse the repository at this point in the history
  • Loading branch information
ffakenz committed Feb 8, 2023
1 parent beaf917 commit ae02d0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hydra-node/src/Hydra/Chain/Direct/Tx.hs
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,9 @@ observeInitTx networkId cardanoKeys expectedCP party tx = do

assetNames headAssetName =
[ assetName
| (AssetId _ assetName, _) <- txMintAssets tx
| (AssetId _ assetName, assetQuantity) <- txMintAssets tx
, assetName /= headAssetName
, assetQuantity == 1
]

data CommitObservation = CommitObservation
Expand Down

0 comments on commit ae02d0f

Please sign in to comment.