File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
eras/dijkstra/impl/testlib/Test/Cardano/Ledger/Dijkstra Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,9 @@ sizedDijkstraNativeScript n =
131131instance (Arbitrary (TxBody l DijkstraEra ), Typeable l ) => Arbitrary (Tx l DijkstraEra ) where
132132 arbitrary =
133133 fmap MkDijkstraTx . withSTxBothLevels @ l $ \ case
134- STopTx -> DijkstraTx <$> arbitrary <*> arbitrary <*> arbitrary <*> arbitrary
134+ -- Per CIP-0167, Dijkstra transactions should always have isValid = True
135+ -- The isValid flag is omitted in serialization and defaults to True
136+ STopTx -> DijkstraTx <$> arbitrary <*> arbitrary <*> pure (IsValid True ) <*> arbitrary
135137 SSubTx -> DijkstraSubTx <$> arbitrary <*> arbitrary <*> arbitrary
136138
137139instance Era era => Arbitrary (DijkstraTxCert era ) where
You can’t perform that action at this time.
0 commit comments