Skip to content

Commit

Permalink
Remove mockTxId
Browse files Browse the repository at this point in the history
  • Loading branch information
HeinrichApfelmus committed Oct 22, 2024
1 parent 6698594 commit 6eef21c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion lib/customer-deposit-wallet/customer-deposit-wallet.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ library
build-depends:
, async
, base
, bytestring
, cardano-crypto
, cardano-ledger-api
, cardano-strict-containers
Expand Down
19 changes: 0 additions & 19 deletions lib/customer-deposit-wallet/src/Cardano/Wallet/Deposit/Write.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ module Cardano.Wallet.Deposit.Write
-- * Helper functions
, mkAda
, mkTxOut
, mockTxId
, toConwayTx
) where

Expand All @@ -35,19 +34,12 @@ import Cardano.Wallet.Deposit.Read
, TxOut
, Value
)
import Cardano.Wallet.Read.Hash
( hashFromBytesShort
)
import Cardano.Wallet.Read.Tx
( toConwayOutput
, txIdFromHash
)
import Data.Map
( Map
)
import Data.Maybe
( fromJust
)
import Data.Maybe.Strict
( StrictMaybe
, maybeToStrictMaybe
Expand All @@ -67,9 +59,6 @@ import Lens.Micro
import qualified Cardano.Ledger.Api as L
import qualified Cardano.Ledger.Api.Tx.In as L
import qualified Cardano.Wallet.Read as Read
import qualified Data.ByteString as BS
import qualified Data.ByteString.Char8 as B8
import qualified Data.ByteString.Short as SBS
import qualified Data.Map.Strict as Map
import qualified Data.Set as Set

Expand Down Expand Up @@ -124,11 +113,3 @@ toConwayTxOut :: TxOut -> L.TxOut L.Conway
toConwayTxOut txout =
case toConwayOutput txout of
Output o -> o

mockTxId :: Show a => a -> TxId
mockTxId x =
txIdFromHash
. fromJust
. hashFromBytesShort
. SBS.pack
$ take 32 (BS.unpack (B8.pack $ show x) <> repeat 0)

0 comments on commit 6eef21c

Please sign in to comment.