Skip to content

Commit

Permalink
chore(x/swingset): Include "default" in vat-transcript-retention inva…
Browse files Browse the repository at this point in the history
…lid value error message

Ref #10032
  • Loading branch information
gibson042 committed Sep 12, 2024
1 parent 66e4cc0 commit 2e0ff9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion golang/cosmos/x/swingset/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,10 @@ func SwingsetConfigFromViper(resolvedConfig servertypes.AppOptions) (*SwingsetCo
}
}
if util.IndexOf(transcriptRetentionValues, ssConfig.VatTranscriptRetention) == -1 {
valuesCopy := append([]string{}, transcriptRetentionValues...)
err := fmt.Errorf(
"value for vat-transcript-retention must be in %q",
transcriptRetentionValues,
append(valuesCopy, "default"),
)
return nil, err
}
Expand Down

0 comments on commit 2e0ff9c

Please sign in to comment.