Skip to content

Commit

Permalink
Cosmos SDK v0.39.0 "Launchpad" (ignite#45)
Browse files Browse the repository at this point in the history
* Update go.mod to Cosmos SDK v0.39.0

* Fix issue with pruning options

* Fix acc number and seq fetching
  • Loading branch information
fadeev authored Jul 28, 2020
1 parent b110960 commit f16f1f3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,13 @@ func newApp(logger log.Logger, db dbm.DB, traceStore io.Writer) abci.Application
if viper.GetBool(server.FlagInterBlockCache) {
cache = store.NewCommitKVStoreCacheManager()
}

pruningOpts, err := server.GetPruningOptionsFromFlags()
if err != nil {
panic(err)
}
return app.NewInitApp(
logger, db, traceStore, true, invCheckPeriod,
baseapp.SetPruning(store.NewPruningOptionsFromString(viper.GetString("pruning"))),
baseapp.SetPruning(pruningOpts),
baseapp.SetMinGasPrices(viper.GetString(server.FlagMinGasPrices)),
baseapp.SetHaltHeight(viper.GetUint64(server.FlagHaltHeight)),
baseapp.SetHaltTime(viper.GetUint64(server.FlagHaltTime)),
Expand Down
5 changes: 4 additions & 1 deletion templates/app/templates/frontend/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ export default new Vuex.Store({
commit("accountUpdate", { account });
},
async entitySubmit({ state }, { type, body }) {
const { accountNumber, sequence } = await state.client.getNonce();
const accountURL = `${API}/auth/accounts/${state.client.senderAddress}`;
const account = (await axios.get(accountURL)).data.result.value;
const accountNumber = account.account_number;
const sequence = account.sequence;
const address = state.client.senderAddress;
const chain_id = await state.client.getChainId();
const req = {
Expand Down
9 changes: 3 additions & 6 deletions templates/app/templates/go.mod.plush
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
module <%= ModulePath %>

go 1.13
go 1.14

require (
github.com/btcsuite/btcd v0.0.0-20190807005414-4063feeff79a // indirect
github.com/cosmos/cosmos-sdk v0.38.4
github.com/cosmos/cosmos-sdk v0.39.0
github.com/golang/mock v1.4.3 // indirect
github.com/google/uuid v1.0.0
github.com/gorilla/mux v1.7.4
github.com/onsi/ginkgo v1.8.0 // indirect
github.com/onsi/gomega v1.5.0 // indirect
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect
github.com/spf13/afero v1.2.2 // indirect
github.com/spf13/cobra v1.0.0
github.com/spf13/viper v1.7.0
github.com/tendermint/go-amino v0.15.1
github.com/tendermint/tendermint v0.33.3
github.com/tendermint/tendermint v0.33.6
github.com/tendermint/tm-db v0.5.1
golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2 // indirect
github.com/google/uuid v1.0.0
)

0 comments on commit f16f1f3

Please sign in to comment.