Skip to content

Commit

Permalink
Merge branch 'develop' into fix/networkchain-build-check-config-version
Browse files Browse the repository at this point in the history
  • Loading branch information
jeronimoalbi committed Oct 18, 2022
2 parents 661f4e1 + 83a0746 commit b4c9532
Show file tree
Hide file tree
Showing 53 changed files with 1,018 additions and 404 deletions.
2 changes: 1 addition & 1 deletion .firebaserc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"projects": {
"default": "ignite-hq"
"default": "ignitesrvc"
},
"targets": {
"ignite-hq": {
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs-deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build_and_deploy:
runs-on: ubuntu-latest
runs-on: self-hosted

steps:
- name: Checkout
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_IGNITE_HQ }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_IGNITESRVC }}"
expires: 7d
target: docs.ignite.com
projectId: ignite-hq
projectId: ignitesrvc
8 changes: 4 additions & 4 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ on:

jobs:
consecutiveness:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: mktcode/consecutive-workflow-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

build_and_deploy:
runs-on: ubuntu-latest
runs-on: self-hosted
needs: [ consecutiveness ]

steps:
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_IGNITE_HQ }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_IGNITESRVC }}"
channelId: live
target: docs.ignite.com
projectId: ignite-hq
projectId: ignitesrvc
18 changes: 10 additions & 8 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

### Features
- Add `pkg/cosmostxcollector` package with support to query and save TXs and events.
- Add `ignite network coordinator` command set
- Add `ignite network validator` command set
- Add `ignite network coordinator` command set.
- Add `ignite network validator` command set.
- Move cosmoscmd in chain's templates.
- Add generated TS client test support to integration tests.

### Changes

Expand All @@ -21,6 +23,8 @@
- Change CLI to use an events bus to print to stdout.
- Move generated proto files to `proto/{appname}/{module}`
- Update `pkg/cosmosanalysis` to detect when proto RPC services are using pagination.
- Change nightly tag format
- Add cosmos-sdk version in `version` command

### Fixes

Expand All @@ -30,17 +34,15 @@
- Seal the capability keeper in the `app.go` template
- Change faucet to allow C.O.R.S. preflight requests.
- Fix config file migration to void leaving end of file content chunks
- Change session print loop to block until all events are handled.
- Handle "No records were found in keyring" message when checking keys.
- Network commands check for latest config version before building the chain binary.

### Features

- Add generated TS client test support to integration tests.
## [`v0.24.1`](https://github.com/ignite/cli/releases/tag/v0.24.1)

### Changes
### Features

- Change nightly tag format
- Add cosmos-sdk version in `version` command
- Upgraded Cosmos SDK to `v0.46.2`.

## [`v0.24.0`](https://github.com/ignite/cli/releases/tag/v0.24.0)

Expand Down
13 changes: 11 additions & 2 deletions docs/docs/migration/v0.22.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,18 @@ description: For chains that were scaffolded with Ignite CLI versions lower than

# Upgrading a blockchain to use Ignite CLI v0.22.0

1. Open your `go.mod` and change the Ignite CLI line with `github.com/ignite-hq/cli v0.22.0`
Ignite CLI v0.22.2 changed the GitHub username from "ignite-hq" to "ignite", which means the imports must be fixed to reflect this change.

2. Upgrade your IBC version to [v3](https://github.com/cosmos/ibc-go/releases/tag/v3.0.0).
1. In your `go.mod` file find the require line for Ignite CLI that starts with `github.com/ignite-hq/cli` and is followed by a version.
It looks something like `github.com/ignite-hq/cli v0.22.0`, and replace it by `github.com/ignite/cli v0.22.2`.

2. Make a bulk find and replace in the import statements for `github.com/ignite-hq/cli` to be replaced by `github.com/ignite/cli`.

3. Finally run `go mod tidy` and ensure there's no mention if `ignite-hq/cli` in your `go.sum` file.

This update includes an upgrade to the `ibc-go` packages. Please make the according changes:

1. Upgrade your IBC version to [v3](https://github.com/cosmos/ibc-go/releases/tag/v3.0.0).

1. Search for `github.com/cosmos/ibc-go/v2` in the import statements of your `.go` files and replace `v2` in the end with `v3`

Expand Down
16 changes: 0 additions & 16 deletions docs/docs/migration/v0.22.2.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/docs/migration/v0.24.0.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 0
sidebar_position: 1
title: v0.24.0
description: For chains that were scaffolded with Ignite CLI versions lower than v0.24, changes are required to use Ignite CLI v0.24.
---
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/migration/v0.25.0.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
sidebar_position: 0
title: v0.24.0
description: For chains that were scaffolded with Ignite CLI versions lower than v0.25,0, changes are required to use Ignite CLI v0.24.0.
title: v0.25.0
description: For chains that were scaffolded with Ignite CLI versions lower than v0.25.0. changes are required to use Ignite CLI v0.24.0.
---

## Protobuf directory migration
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/buger/jsonparser v1.1.1
github.com/cenkalti/backoff v2.2.1+incompatible
github.com/charmbracelet/glow v1.4.0
github.com/cosmos/cosmos-sdk v0.46.1
github.com/cosmos/cosmos-sdk v0.46.2
github.com/cosmos/go-bip39 v1.0.0
github.com/cosmos/ibc-go/v5 v5.0.0
github.com/docker/docker v20.10.17+incompatible
Expand All @@ -40,6 +40,7 @@ require (
github.com/lib/pq v1.10.6
github.com/manifoldco/promptui v0.9.0
github.com/mattn/go-zglob v0.0.3
github.com/mitchellh/mapstructure v1.5.0
github.com/otiai10/copy v1.6.0
github.com/pelletier/go-toml v1.9.5
github.com/pkg/errors v0.9.1
Expand Down Expand Up @@ -125,7 +126,7 @@ require (
github.com/cosmos/btcutil v1.0.4 // indirect
github.com/cosmos/cosmos-proto v1.0.0-alpha7 // indirect
github.com/cosmos/gorocksdb v1.2.0 // indirect
github.com/cosmos/iavl v0.19.1 // indirect
github.com/cosmos/iavl v0.19.2-0.20220916140702-9b6be3095313 // indirect
github.com/cosmos/ledger-cosmos-go v0.11.1 // indirect
github.com/cosmos/ledger-go v0.9.2 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
Expand Down Expand Up @@ -261,7 +262,6 @@ require (
github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643 // indirect
github.com/minio/highwayhash v1.0.2 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/moby/sys/mount v0.3.1 // indirect
github.com/moby/sys/mountinfo v0.6.0 // indirect
github.com/moricho/tparallel v0.2.1 // indirect
Expand Down
18 changes: 8 additions & 10 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHOb
cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI=
cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk=
cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY=
cloud.google.com/go v0.102.0 h1:DAq3r8y4mDgyB/ZPJ9v/5VJNqjgJAxTn6ZYLlUywOu8=
cloud.google.com/go v0.102.1 h1:vpK6iQWv/2uUeFJth4/cBHsQAGjn1iIE6AAlxipRaA0=
cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc=
Expand All @@ -34,7 +34,7 @@ cloud.google.com/go/compute v1.7.0 h1:v/k9Eueb8aAJ0vZuxKMrgm6kPhCLZU9HxFU+AFDs9U
cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk=
cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk=
cloud.google.com/go/iam v0.3.0 h1:exkAomrVUuzx9kWFI1wm3KI0uoDeUFPB4kKGzx6x+Gc=
cloud.google.com/go/iam v0.4.0 h1:YBYU00SCDzZJdHqVc4I5d6lsklcYIjQZa1YmEz4jlSE=
cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw=
cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA=
Expand Down Expand Up @@ -464,15 +464,15 @@ github.com/cosmos/btcutil v1.0.4 h1:n7C2ngKXo7UC9gNyMNLbzqz7Asuf+7Qv4gnX/rOdQ44=
github.com/cosmos/btcutil v1.0.4/go.mod h1:Ffqc8Hn6TJUdDgHBwIZLtrLQC1KdJ9jGJl/TvgUaxbU=
github.com/cosmos/cosmos-proto v1.0.0-alpha7 h1:yqYUOHF2jopwZh4dVQp3xgqwftE5/2hkrwIV6vkUbO0=
github.com/cosmos/cosmos-proto v1.0.0-alpha7/go.mod h1:dosO4pSAbJF8zWCzCoTWP7nNsjcvSUBQmniFxDg5daw=
github.com/cosmos/cosmos-sdk v0.46.1 h1:7vUZXMyrmEb4xtBYpz1TobtrcnpgiZTi+tVjc0XWB4o=
github.com/cosmos/cosmos-sdk v0.46.1/go.mod h1:2+o8Qw8qnE02V+lQVZDJFQ8tri/hsiA5GmWaPERqVa0=
github.com/cosmos/cosmos-sdk v0.46.2 h1:3dUNqbLas94ud5aTcJKCwxVOmNXpuGBtVQTMrYczTwY=
github.com/cosmos/cosmos-sdk v0.46.2/go.mod h1:0aUPGPU6PWaDEaHNjtgrpNhgxo9bAUrQ7BO7XCvFOfs=
github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y=
github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY=
github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw=
github.com/cosmos/gorocksdb v1.2.0 h1:d0l3jJG8M4hBouIZq0mDUHZ+zjOx044J3nGRskwTb4Y=
github.com/cosmos/gorocksdb v1.2.0/go.mod h1:aaKvKItm514hKfNJpUJXnnOWeBnk2GL4+Qw9NHizILw=
github.com/cosmos/iavl v0.19.1 h1:3gaq9b6SjiB0KBTygRnAvEGml2pQlu1TH8uma5g63Ys=
github.com/cosmos/iavl v0.19.1/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw=
github.com/cosmos/iavl v0.19.2-0.20220916140702-9b6be3095313 h1:R7CnaI/0OLwOusy7n9750n8fqQ3yCQ8OJQI2L3ws9RA=
github.com/cosmos/iavl v0.19.2-0.20220916140702-9b6be3095313/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw=
github.com/cosmos/ibc-go/v5 v5.0.0 h1:MkObdarpoICPHXoRg/Ne9NRix4j7eQlJZq74/uzH3Zc=
github.com/cosmos/ibc-go/v5 v5.0.0/go.mod h1:Wqsguq98Iuns8tgTv8+xaGYbC+Q8zJfbpjzT6IgMJbs=
github.com/cosmos/ledger-cosmos-go v0.11.1 h1:9JIYsGnXP613pb2vPjFeMMjBI5lEDsEaF6oYorTy6J4=
Expand Down Expand Up @@ -576,8 +576,6 @@ github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaB
github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc=
github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs=
github.com/emicklei/proto v1.9.0 h1:l0QiNT6Qs7Yj0Mb4X6dnWBQer4ebei2BFcgQLbGqUDc=
github.com/emicklei/proto v1.9.0/go.mod h1:rn1FgRS/FANiZdD2djyH7TMA9jdRDcYQ9IEN9yvjX0A=
github.com/emicklei/proto v1.11.0 h1:XcDEsxxv5xBp0jeZ4rt7dj1wuv/GQ4cSAe4BHbhrRXY=
github.com/emicklei/proto v1.11.0/go.mod h1:rn1FgRS/FANiZdD2djyH7TMA9jdRDcYQ9IEN9yvjX0A=
github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o=
Expand Down Expand Up @@ -906,7 +904,7 @@ github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+
github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa h1:7MYGT2XEMam7Mtzv1yDUYXANedWvwk3HKkR3MyGowy8=
github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw=
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
github.com/googleapis/gax-go/v2 v2.4.0 h1:dS9eYAjhrE2RjmzYw2XAPvcXfmcQLtFEQWn0CR82awk=
Expand Down Expand Up @@ -2328,7 +2326,7 @@ google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz513
google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg=
google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE=
google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8=
google.golang.org/api v0.84.0 h1:NMB9J4cCxs9xEm+1Z9QiO3eFvn7EnQj3Eo3hN6ugVlg=
google.golang.org/api v0.93.0 h1:T2xt9gi0gHdxdnRkVQhT8mIvPaXKNsDNWz+L696M66M=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
Expand Down
9 changes: 9 additions & 0 deletions ignite/cmd/chain_serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const (
flagForceReset = "force-reset"
flagResetOnce = "reset-once"
flagConfig = "config"
flagQuitOnFail = "quit-on-fail"
)

// NewChainServe creates a new serve command to serve a blockchain.
Expand Down Expand Up @@ -64,6 +65,7 @@ production, you may want to run "appd start" manually.
c.Flags().BoolP("verbose", "v", false, "Verbose output")
c.Flags().BoolP(flagForceReset, "f", false, "Force reset of the app state on start and every source change")
c.Flags().BoolP(flagResetOnce, "r", false, "Reset of the app state on first start")
c.Flags().Bool(flagQuitOnFail, false, "Quit program if the app fails to start")

return c
}
Expand Down Expand Up @@ -121,6 +123,13 @@ func chainServeHandler(cmd *cobra.Command, args []string) error {
if resetOnce {
serveOptions = append(serveOptions, chain.ServeResetOnce())
}
quitOnFail, err := cmd.Flags().GetBool(flagQuitOnFail)
if err != nil {
return err
}
if quitOnFail {
serveOptions = append(serveOptions, chain.QuitOnFail())
}

if flagGetSkipProto(cmd) {
serveOptions = append(serveOptions, chain.ServeSkipProto())
Expand Down
7 changes: 6 additions & 1 deletion ignite/cmd/network_chain_prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/ignite/cli/ignite/pkg/cliui"
"github.com/ignite/cli/ignite/pkg/cliui/colors"
"github.com/ignite/cli/ignite/pkg/cliui/icons"
"github.com/ignite/cli/ignite/pkg/gitpod"
"github.com/ignite/cli/ignite/pkg/goenv"
"github.com/ignite/cli/ignite/services/network"
"github.com/ignite/cli/ignite/services/network/networkchain"
Expand Down Expand Up @@ -111,7 +112,11 @@ func networkChainPrepareHandler(cmd *cobra.Command, args []string) error {

session.Printf("%s Chain is prepared for launch\n", icons.OK)
session.Println("\nYou can start your node by running the following command:")
commandStr := fmt.Sprintf("%s start --home %s", binaryName, chainHome)
startCmd := "start"
if gitpod.IsOnGitpod() {
startCmd = "start-with-http-tunneling"
}
commandStr := fmt.Sprintf("%s %s --home %s", binaryName, startCmd, chainHome)
session.Printf("\t%s/%s\n", binaryDir, colors.Info(commandStr))

return nil
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/scaffold_band.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func createBandchainHandler(cmd *cobra.Command, args []string) error {
return err
}

sm, err := sc.AddOracle(cacheStorage, placeholder.New(), module, oracle, options...)
sm, err := sc.AddOracle(cmd.Context(), cacheStorage, placeholder.New(), module, oracle, options...)
if err != nil {
return err
}
Expand Down
5 changes: 4 additions & 1 deletion ignite/cmd/scaffold_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ func scaffoldChainHandler(cmd *cobra.Command, args []string) error {
return err
}

appdir, err := scaffolder.Init(cacheStorage, placeholder.New(), appPath, name, addressPrefix, noDefaultModule)
appdir, err := scaffolder.Init(
cmd.Context(), cacheStorage, placeholder.New(), appPath, name,
addressPrefix, noDefaultModule,
)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/scaffold_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func scaffoldModuleHandler(cmd *cobra.Command, args []string) error {
return err
}

sm, err := sc.CreateModule(cacheStorage, placeholder.New(), name, options...)
sm, err := sc.CreateModule(cmd.Context(), cacheStorage, placeholder.New(), name, options...)
if err != nil {
var validationErr validation.Error
if !requireRegistration && errors.As(err, &validationErr) {
Expand Down
2 changes: 1 addition & 1 deletion ignite/cmd/scaffold_mwasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func scaffoldWasmHandler(cmd *cobra.Command, args []string) error {
return err
}

sm, err := sc.ImportModule(cacheStorage, placeholder.New(), "wasm")
sm, err := sc.ImportModule(cmd.Context(), cacheStorage, placeholder.New(), "wasm")
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion ignite/pkg/chaincmd/runner/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (r Runner) CheckAccountExist(ctx context.Context, name string) error {
// finishes with exit code 0 and a plain text message.
// This behavior was added to Cosmos SDK v0.46.2. See the link
// https://github.com/cosmos/cosmos-sdk/blob/d01aa5b4a8/client/keys/list.go#L37
if strings.TrimRight(b.String(), "\n") == msgEmptyKeyring {
if strings.TrimSpace(b.String()) == msgEmptyKeyring {
return nil
}

Expand Down
Loading

0 comments on commit b4c9532

Please sign in to comment.