Skip to content

Commit

Permalink
Save space in IsServerError instance for ErrSubmitTransaction.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed May 16, 2024
1 parent 78ceba7 commit 0bf79f7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/api/src/Cardano/Wallet/Api/Http/Server/Error.hs
Original file line number Diff line number Diff line change
Expand Up @@ -649,15 +649,11 @@ instance IsServerError ErrSubmitTransaction where
]
ErrSubmitTransactionMissingWitnesses
ErrSubmitTransactionMissingWitnessCounts
{ expectedNumberOfKeyWits
, detectedNumberOfKeyWits
} ->
{expectedNumberOfKeyWits, detectedNumberOfKeyWits} ->
flip (apiError err403) message $
MissingWitnessesInTransaction
ApiErrorMissingWitnessesInTransaction
{ expectedNumberOfKeyWits
, detectedNumberOfKeyWits
}
{expectedNumberOfKeyWits, detectedNumberOfKeyWits}
where
message = mconcat
[ "The transaction expects "
Expand Down

0 comments on commit 0bf79f7

Please sign in to comment.