Skip to content

Commit

Permalink
fix: fix slice init length (#2294)
Browse files Browse the repository at this point in the history
Co-authored-by: Meaghan FitzGerald <[email protected]>
  • Loading branch information
wangjingcun and meaghanfitzgerald authored Oct 29, 2024
1 parent 9b45280 commit 4dc616b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/blockchaincmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ func sendMetrics(cmd *cobra.Command, repoName, blockchainName string) error {
return err
}
conf := genesis.Config.GenesisPrecompiles
precompiles := make([]string, 6)
precompiles := make([]string, 0, 6)
for precompileName := range conf {
precompileTag := "precompile-" + precompileName
flags[precompileTag] = precompileName
Expand Down

0 comments on commit 4dc616b

Please sign in to comment.