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 (#10081)

Ref #10032

## Description
```diff
-value for vat-transcript-retention must be in ["archival" "operational"]
+value for vat-transcript-retention must be in ["archival" "operational" "default"]
```

### Security Considerations
n/a

### Scaling Considerations
n/a

### Documentation Considerations
n/a

### Testing Considerations
n/a

### Upgrade Considerations
n/a
  • Loading branch information
mergify[bot] committed Sep 12, 2024
2 parents 66e4cc0 + 2e0ff9c commit 3b97a9f
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 3b97a9f

Please sign in to comment.