diff --git a/cabal.project b/cabal.project index 4d153d34c86..b3ba11bb677 100644 --- a/cabal.project +++ b/cabal.project @@ -166,3 +166,11 @@ if impl(ghc >= 9.14) -- Do NOT add more source-repository-package stanzas here unless they are strictly -- temporary! Please read the section in CONTRIBUTING about updating dependencies. +source-repository-package + type: git + location: https://github.com/IntersectMBO/cardano-api + tag: 8d2154b34de4951b4b8867253251f146844fad18 + --sha256: sha256-e3qpkb9RJl44vsFwp8DssqH9lOrzXe7OPwaBDrmv7KA= + subdir: + cardano-rpc + diff --git a/cardano-testnet/.changes/20260820_124721_mgalazyn_reenable_rpc_readgenesis_initialfunds_assertion.yml b/cardano-testnet/.changes/20260820_124721_mgalazyn_reenable_rpc_readgenesis_initialfunds_assertion.yml new file mode 100644 index 00000000000..aa7a3267c93 --- /dev/null +++ b/cardano-testnet/.changes/20260820_124721_mgalazyn_reenable_rpc_readgenesis_initialfunds_assertion.yml @@ -0,0 +1,5 @@ +pr: 6657 +kind: + - test +description: | + Re-enabled the `initialFunds` assertion in the UTxO RPC `ReadGenesis` test now that cardano-rpc resolves initial funds from the genesis `sgExtraConfig`. diff --git a/cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Rpc/Genesis.hs b/cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Rpc/Genesis.hs index 0e41f577581..65150830d1e 100644 --- a/cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Rpc/Genesis.hs +++ b/cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Rpc/Genesis.hs @@ -71,11 +71,8 @@ hprop_rpc_read_genesis = integrationRetryWorkspace 2 "rpc-read-genesis" $ \tempA H.assertWith (cardanoGenesis ^. U5c.systemStart) $ not . Text.null void $ H.nothingFail (cardanoGenesis ^. U5c.maybe'protocolParams) - -- TODO: re-enable once cardano-rpc resolves initial funds from sgExtraConfig. - -- cardano-cli create-testnet-data funds wallets via sgExtraConfig.secInitialFunds and leaves the legacy sgInitialFunds field empty, so the RPC response's initialFunds map is currently always empty for testnet genesis. - -- Handler fix pending on cardano-api branch mgalazyn/fix/rpc-initial-funds-extraconfig. - -- H.note_ "initialFunds is non-empty: only the uncompacted boot-time genesis carries it, and cardano-testnet funds its wallets there" - -- H.assertWith (cardanoGenesis ^. U5c.initialFunds) $ not . Map.null + H.note_ "initialFunds is non-empty: only the uncompacted boot-time genesis carries it, and cardano-testnet funds its wallets there" + H.assertWith (cardanoGenesis ^. U5c.initialFunds) $ not . Map.null H.note_ "Byron: protocolConsts, startTime, bootStakeholders" protocolConsts <- H.nothingFail (cardanoGenesis ^. U5c.maybe'protocolConsts)