Skip to content

Commit

Permalink
fix reflect ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Aug 28, 2024
1 parent b4f55c8 commit 295e67b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/launchtools/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (i *Config) Finalize(buf *bufio.Reader) error {
if err := i.SystemKeys.Finalize(buf); err != nil {
return err
}
if err := i.GenesisAccounts.Finalize(i.SystemKeys); err != nil {
if err := i.GenesisAccounts.Finalize(*i.SystemKeys); err != nil {
return err
}

Expand Down Expand Up @@ -271,7 +271,7 @@ type GenesisAccount struct {

type GenesisAccounts []GenesisAccount

func (gas *GenesisAccounts) Finalize(systemKeys *SystemKeys) error {
func (gas *GenesisAccounts) Finalize(systemKeys SystemKeys) error {
keys := reflect.ValueOf(systemKeys)
for idx := 0; idx < keys.NumField(); idx++ {
k, ok := keys.Field(idx).Interface().(*SystemAccount)
Expand Down

0 comments on commit 295e67b

Please sign in to comment.