Update CIP-0106/README.md
Co-authored-by: Ryan <[email protected]>
Co-authored-by: Ryan <[email protected]>
This is necessary to avoid failures of the following type: ``` src/Test/Aeson/Internal/GoldenSpecs.hs:77:5: 1) Cardano.Wallet.Api.Types, JSON golden roundtrip, JSON encoding of ApiError, produces the same JSON as is found in /home/jsk/projects/input-output-hk/cardano-wallet-0/lib/unit/test/data/Cardano/Wallet/Api/ApiError.json uncaught exception: AesonDecodeError AesonDecodeError "Error in $.samples[14]: parsing Cardano.Wallet.Api.Types.Error.ApiErrorInfo(MissingWitnessesInTransaction) failed, key \"info\" not found" To rerun use: --match "/Cardano.Wallet.Api.Types/JSON golden roundtrip/JSON encoding of ApiError/produces the same JSON as is found in /home/jsk/projects/input-output-hk/cardano-wallet-0/lib/unit/test/data/Cardano/Wallet/Api/ApiError.json/" --seed 1949888530 Randomized with seed 1949888530 ``` The above error appears because we recently added a non-optional `info` field to the `errMissingWitnessesInTransaction` error.
This PR adds golden test and API definitions for the following API errors: - `ApiErrorNoSuchPool` - `ApiErrorMissingWitnessesInTransaction` ## Issue ADP-3306
This is necessary to avoid failures of the following type: ``` src/Test/Aeson/Internal/GoldenSpecs.hs:77:5: 1) Cardano.Wallet.Api.Types, JSON golden roundtrip, JSON encoding of ApiError, produces the same JSON as is found in /home/jsk/projects/input-output-hk/cardano-wallet-0/lib/unit/test/data/Cardano/Wallet/Api/ApiError.json uncaught exception: AesonDecodeError AesonDecodeError "Error in $.samples[14]: parsing Cardano.Wallet.Api.Types.Error.ApiErrorInfo(MissingWitnessesInTransaction) failed, key \"info\" not found" To rerun use: --match "/Cardano.Wallet.Api.Types/JSON golden roundtrip/JSON encoding of ApiError/produces the same JSON as is found in /home/jsk/projects/input-output-hk/cardano-wallet-0/lib/unit/test/data/Cardano/Wallet/Api/ApiError.json/" --seed 1949888530 Randomized with seed 1949888530 ``` The above error appears because we recently added a non-optional `info` field to the `errMissingWitnessesInTransaction` error.
The genMatadata' generator seems reasonable for our use case here.
It seems label 55555 is causing invalid aux hashes on blockfrost side.