Skip to content

Commit

Permalink
populate owner for router module
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin committed Sep 25, 2023
1 parent 4901d91 commit fffb07e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions interchaintest/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,10 @@ func modifyGenesisAll(gw *genesisWrapper, minSetupTf, minSetupFiatTf bool) func(
return nil, err
}

if err := modifyGenesisRouter(g, gw.fiatTfRoles.Owner.FormattedAddress()); err != nil {
return nil, err
}

out, err := json.Marshal(&g)
if err != nil {
return nil, fmt.Errorf("failed to marshal genesis bytes to json: %w", err)
Expand Down Expand Up @@ -592,6 +596,14 @@ func modifyGenesisCCTP(genbz map[string]interface{}, authority string) error {
return nil
}

func modifyGenesisRouter(genbz map[string]interface{}, authority string) error {
if err := dyno.Set(genbz, authority, "app_state", "router", "owner"); err != nil {
return fmt.Errorf("failed to set router authority address in genesis json: %w", err)
}

return nil
}

func modifyGenesisTariffDefaults(
genbz map[string]interface{},
distributionEntity string,
Expand Down

0 comments on commit fffb07e

Please sign in to comment.