diff --git a/lib/core-integration/src/Test/Integration/Scenario/API/Byron/Transactions.hs b/lib/core-integration/src/Test/Integration/Scenario/API/Byron/Transactions.hs index be8c9fc6814..61850bae938 100644 --- a/lib/core-integration/src/Test/Integration/Scenario/API/Byron/Transactions.hs +++ b/lib/core-integration/src/Test/Integration/Scenario/API/Byron/Transactions.hs @@ -42,7 +42,7 @@ import Cardano.Wallet.Primitive.Types.TokenPolicy import Cardano.Wallet.Primitive.Types.Tx ( Direction (..), TxStatus (..) ) import Cardano.Wallet.Unsafe - ( unsafeFromText ) + ( unsafeFromHex, unsafeFromText ) import Control.Monad ( forM_, void ) import Control.Monad.IO.Class @@ -123,6 +123,7 @@ import qualified Cardano.Wallet.Primitive.Types.TokenPolicy as TokenPolicy import qualified Data.ByteString as BS import qualified Data.ByteString.Char8 as B8 import qualified Data.Text as T +import qualified Data.Text.Encoding as T import qualified Network.HTTP.Types.Status as HTTP data TestCase a = TestCase @@ -604,10 +605,6 @@ spec = describe "BYRON_TRANSACTIONS" $ do -- Golden from https://github.com/input-output-hk/cardano-sl/pull/4278#issuecomment-600553878 it "BYRON_SCRYPT_TRANS_CREATE_01 - wallet with password" $ \ctx -> do - pendingWith "password in golden seems wrong" - -- I also tried a few tweaks to our 'preparePassphrase', but to no help. - -- Either the passphrase is wrong, or the implementation is wrong, or - -- both. flip runByronScryptGolden ctx $ ByronScryptGolden { mnemonic = T.words "inhale arm pilot fitness ceiling october donate \ @@ -623,8 +620,9 @@ spec = describe "BYRON_TRANSACTIONS" $ do \3470646c6d4f76665177653863775a575472784f79773d3d7c796341722f61\ \326f4f777a736e4e746f4e655049416e4f6b7978426549494a6b59623039574\ \b564a7159493d" - , password = - "0000000000000000000000000000000000000050415441544520504154415445" + , password = T.pack . B8.unpack $ unsafeFromHex + "00000000000000000000000000000000000000\ + \50415441544520504154415445" } -- Golden from https://github.com/input-output-hk/cardano-sl/pull/4278#issuecomment-600553878 it "BYRON_SCRYPT_TRANS_CREATE_02 - wallet without password" $