Skip to content

Commit

Permalink
Only return the OverlappingAdditionalUtxo error if the provided UTXO …
Browse files Browse the repository at this point in the history
…actually differs from the one in the ledger
  • Loading branch information
Quantumplation committed Jul 19, 2024
1 parent 0f15530 commit 09d9e9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/Ogmios/App/Protocol/TxSubmission.hs
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,9 @@ mkEvaluateTransactionResponse callback (UTxO networkUtxo) args =
\to convince the compiler of this."
Just (UTxO userProvidedUtxo, tx) ->
let
intersection = Map.intersection userProvidedUtxo networkUtxo
intersection = Map.intersectionWith (==) userProvidedUtxo networkUtxo
in
if null intersection
if all intersection
then
callback (UTxO $ userProvidedUtxo <> networkUtxo) tx
else
Expand Down

0 comments on commit 09d9e9c

Please sign in to comment.