cli: adjust resulting state object structure in upload-state command

`upload-state` suppose to create objects with key-value pairs instead of
full MPT nodes. Partially revert 5f80a14.

Ref. #3782

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
This commit is contained in:
Ekaterina Pavlova 2025-03-26 13:16:27 +09:00
parent fd41598b8a
commit f60feefe45
5 changed files with 22 additions and 28 deletions

View file

@ -200,11 +200,11 @@ func TestInitBCWithMetrics(t *testing.T) {
})
t.Run("bad store", func(t *testing.T) {
_, _, _, _, err = InitBCWithMetrics(config.Config{}, logger)
_, _, _, err = InitBCWithMetrics(config.Config{}, logger)
require.Error(t, err)
})
chain, _, prometheus, pprof, err := InitBCWithMetrics(cfg, logger)
chain, prometheus, pprof, err := InitBCWithMetrics(cfg, logger)
require.NoError(t, err)
t.Cleanup(func() {
chain.Close()