Skip to content

Commit

Permalink
Merge pull request #1850 from iotaledger/fix-wasp-cli
Browse files Browse the repository at this point in the history
Move l1 client out of the init phase
  • Loading branch information
lmoe authored Feb 9, 2023
2 parents fa62d27 + a38b034 commit 0087d31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
- name: Untar temporary artifacts and cleanup
run: tar -xf temp.tar && rm temp.tar

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
#- name: Set up QEMU
# uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
4 changes: 2 additions & 2 deletions tools/wasp-cli/cli/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ func Init(rootCmd *cobra.Command, waspVersion string) {
rootCmd.PersistentFlags().StringVarP(&config.ConfigPath, "config", "c", "wasp-cli.json", "path to wasp-cli.json")
rootCmd.PersistentFlags().BoolVarP(&config.WaitForCompletion, "wait", "w", true, "wait for request completion")

cliclients.L1Client()

rootCmd.AddCommand(initCheckVersionsCmd(waspVersion))
rootCmd.AddCommand(initConfigSetCmd())
rootCmd.AddCommand(initRefreshL1ParamsCmd())

// The first time parameters.L1() is called, it will be initialized with this function
parameters.InitL1Lazy(func() {
cliclients.L1Client()

if config.L1ParamsExpired() {
config.RefreshL1ParamsFromNode()
} else {
Expand Down

0 comments on commit 0087d31

Please sign in to comment.