Skip to content

Commit

Permalink
Final fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattverse committed Oct 2, 2024
1 parent 293eea5 commit 6522940
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 55 deletions.
7 changes: 1 addition & 6 deletions cmd/osmosisd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -1328,10 +1328,5 @@ func autoCliOpts(initClientCtx client.Context, tempApp *osmosis.OsmosisApp) auto
AddressCodec: authcodec.NewBech32Codec(sdk.GetConfig().GetBech32AccountAddrPrefix()),
ValidatorAddressCodec: authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix()),
ConsensusAddressCodec: authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ConsensusAddrPrefix()),
ClientCtx: initClientCtx,
// TxConfigOpts: tx.ConfigOptions{
// EnabledSignModes: tx.DefaultSignModes,
// TextualCoinMetadataQueryFn: authtxconfig.NewGRPCCoinMetadataQueryFn(initClientCtx),
// },
}
ClientCtx: initClientCtx}
}
49 changes: 0 additions & 49 deletions tests/e2e/configurer/chain/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,55 +251,6 @@ func (n *NodeConfig) QueryGovModuleAccount() string {
return ""
}

// func (n *NodeConfig) QueryGovModuleAccount() string {
// cmd := []string{"osmosisd", "query", "auth", "module-accounts", "--output=json"}
// fmt.Printf("=====starting gov module query for node %s \n", n.Name)

// out, errBuf, err := n.containerManager.ExecCmd(n.t, n.Name, cmd, "", false, false)
// // fmt.Printf("Raw Output: %s for %s\n", out.Bytes(), n.Name)
// // fmt.Printf("Error Buffer: %s for %s\n", errBuf.Bytes(), n.Name)
// require.NoError(n.t, err)

// var result map[string][]interface{}

// // Check if 'out' is not empty, otherwise use 'errBuf' for unmarshalling
// var dataToUnmarshal []byte
// if len(out.Bytes()) > 0 {
// dataToUnmarshal = out.Bytes()
// } else if len(errBuf.Bytes()) > 0 {
// dataToUnmarshal = errBuf.Bytes()
// } else {
// require.FailNow(n.t, "Both output and error buffers are empty")
// }

// err = json.Unmarshal(dataToUnmarshal, &result)
// require.NoError(n.t, err)
// fmt.Println("=====passed json unmarshal")
// fmt.Printf("Unmarshaled Result for : %s, result: %s \n", n.Name, result)

// a := result["accounts"][0]
// account, ok := a.(map[string]interface{})
// require.True(n.t, ok)
// fmt.Println("Account: ", account)

// for _, acc := range result["accounts"] {
// account, ok := acc.(map[string]interface{})
// require.True(n.t, ok)
// fmt.Println("account: ", account)
// fmt.Println("at least past here ", account["name"])
// if account["name"] == "gov" {
// fmt.Printf("Inside gov for : %s \n", n.Name)
// moduleAccount, ok := account["base_account"].(map[string]interface{})["address"].(string)
// fmt.Printf("mod account for : %s is %s \n", n.Name, moduleAccount)
// require.True(n.t, ok)
// return moduleAccount
// }
// }

// require.True(n.t, false, "gov module account not found")
// return ""
// }

func (n *NodeConfig) SubmitParamChangeProposal(proposalJson, from string, isLegacy bool) int {
n.LogActionF("submitting param change proposal %s", proposalJson)
// ToDo: Is there a better way to do this?
Expand Down

0 comments on commit 6522940

Please sign in to comment.