Skip to content

Commit

Permalink
fix: allow writing to genesis again
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathansumner committed May 31, 2024
1 parent b3f72a4 commit f6cb56b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions cmd/fetchd/cmd/genesis-asi-upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/cosmos/cosmos-sdk/x/genutil"
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
ibctransfertypes "github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
ibccore "github.com/cosmos/ibc-go/v3/modules/core/24-host"
Expand Down Expand Up @@ -241,15 +242,13 @@ func ASIGenesisUpgradeCmd(defaultNodeHome string) *cobra.Command {
return err
}

return nil
var encodedAppState []byte
if encodedAppState, err = json.Marshal(jsonData); err != nil {
return err
}

//var encodedAppState []byte
//if encodedAppState, err = json.Marshal(jsonData); err != nil {
// return err
//}
//
//genDoc.AppState = encodedAppState
//return genutil.ExportGenesisFile(genDoc, genFile)
genDoc.AppState = encodedAppState
return genutil.ExportGenesisFile(genDoc, genFile)
},
}

Expand Down

0 comments on commit f6cb56b

Please sign in to comment.