Skip to content

Commit

Permalink
Drop unused ErrBalanceTxConflictingNetworks
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed Dec 19, 2024
1 parent 885f9e6 commit 6564b89
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
6 changes: 0 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 @@ -606,12 +606,6 @@ instance (Write.IsRecentEra era, IsServerError (ErrAssignRedeemers era))
TokenBundle shortfallAda shortfallAssets =
toWalletTokenBundle $ e ^. #shortfall
ErrBalanceTxAssignRedeemers err -> toServerError err
ErrBalanceTxConflictingNetworks ->
apiError err403 BalanceTxConflictingNetworks $ T.unwords
[ "There are withdrawals for multiple networks (e.g. both"
, "mainnet and testnet) in the provided transaction. This"
, "makes no sense, and I'm confused."
]
ErrBalanceTxExistingCollateral ->
apiError err403 BalanceTxExistingCollateral
"I cannot balance transactions with pre-defined collateral."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ data ErrBalanceTx era
| ErrBalanceTxExistingReturnCollateral
| ErrBalanceTxInsufficientCollateral
(ErrBalanceTxInsufficientCollateralError era)
| ErrBalanceTxConflictingNetworks
| ErrBalanceTxAssignRedeemers (ErrAssignRedeemers era)
| ErrBalanceTxInternalError (ErrBalanceTxInternalError era)
| ErrBalanceTxInputResolutionConflicts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1356,8 +1356,6 @@ prop_balanceTxValid
label "existing collateral return outputs" True
Left ErrBalanceTxMaxSizeLimitExceeded ->
label "maxTxSize limit exceeded" $ property True
Left ErrBalanceTxConflictingNetworks ->
label "conflicting networks" $ property True
Left ErrBalanceTxUnableToCreateInput ->
label "unable to create input" $ property True
Left (ErrBalanceTxInternalError
Expand Down

0 comments on commit 6564b89

Please sign in to comment.