File tree Expand file tree Collapse file tree
cardano-cli/src/Cardano/CLI/EraBased/Query Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -790,7 +790,7 @@ runQueryStakeSnapshotCmd
790790
791791 result <- easyRunQuery (queryStakeSnapshot beo poolFilter)
792792
793- hoist liftIO $ obtainCommonConstraints era (writeStakeSnapshots outputFormat mOutFile) result
793+ hoist liftIO $ obtainCommonConstraints era (writeStakeSnapshots era outputFormat mOutFile) result
794794 )
795795 & fromEitherCIOCli
796796
@@ -1156,13 +1156,14 @@ writeStakeAddressInfo
11561156
11571157writeStakeSnapshots
11581158 :: forall era
1159- . Vary [FormatJson , FormatYaml ]
1159+ . Exp. Era era
1160+ -> Vary [FormatJson , FormatYaml ]
11601161 -> Maybe (File () Out )
11611162 -> SerialisedStakeSnapshots era
11621163 -> ExceptT QueryCmdError IO ()
1163- writeStakeSnapshots outputFormat mOutFile qState = do
1164+ writeStakeSnapshots era outputFormat mOutFile qState = do
11641165 StakeSnapshot snapshot <-
1165- pure (decodeStakeSnapshot qState)
1166+ pure (decodeStakeSnapshot (convert era) qState)
11661167 & onLeft (left . QueryCmdStakeSnapshotDecodeError )
11671168
11681169 let output =
You can’t perform that action at this time.
0 commit comments