Skip to content

Commit

Permalink
CLISpec: Update for new TxMetadataValue API
Browse files Browse the repository at this point in the history
  • Loading branch information
rvl committed Sep 21, 2020
1 parent e4d1a4a commit 9abeec4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/cli/test/unit/Cardano/CLISpec.hs
Expand Up @@ -41,7 +41,7 @@ import Cardano.Wallet.Api.Client
import Cardano.Wallet.Api.Types
( ApiT (..), ApiTxMetadata (..) )
import Cardano.Wallet.Primitive.Types
( TxMetadata (..) )
( TxMetadata (..), TxMetadataValue (..) )
import Control.Concurrent
( forkFinally )
import Control.Concurrent.MVar
Expand Down Expand Up @@ -99,7 +99,6 @@ import Test.Text.Roundtrip
import qualified Data.Map as Map
import qualified Data.Text as T
import qualified Data.Text.IO as TIO
import qualified Shelley.Spec.Ledger.MetaData as MD

spec :: Spec
spec = do
Expand Down Expand Up @@ -669,7 +668,7 @@ spec = do
describe "Tx Metadata JSON option" $ do
let parse arg = execParserPure defaultPrefs
(info metadataOption mempty) ["--metadata", arg]
let md = ApiT (TxMetadata (MD.MetaData (Map.singleton 42 (MD.S "hi"))))
let md = ApiT (TxMetadata (Map.singleton 42 (TxMetaText "hi")))
let ok ex (Success res) = ex == getApiTxMetadata res
ok _ _ = False
let err (Failure _) = True
Expand Down

0 comments on commit 9abeec4

Please sign in to comment.