Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayashsatolia403 committed Oct 30, 2024
1 parent 8af334d commit 3431398
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/newallocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ var newallocationCmd = &cobra.Command{
ThirdPartyExtendable: thirdPartyExtendable,
Force: force,
IsEnterprise: isEnterprise,
StorageVersion: storageVersion,
StorageVersion: int(storageVersion),
}
allocationID, _, _, err = sdk.CreateAllocationWith(options)
if err != nil {
Expand Down
11 changes: 6 additions & 5 deletions cmd/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cmd

import (
"fmt"
"github.com/0chain/gosdk/core/transaction"
"log"
"time"

Expand All @@ -23,7 +24,7 @@ var scConfig = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
doJSON, _ := cmd.Flags().GetBool("json")

var conf, err = sdk.GetStorageSCConfig()
var conf, err = transaction.GetConfig("storage_sc_config")
if err != nil {
log.Fatalf("Failed to get storage SC configurations: %v", err)
}
Expand Down Expand Up @@ -315,10 +316,10 @@ var blobberUpdateCmd = &cobra.Command{
}

var resetBlobberStatsCmd = &cobra.Command{
Use: "reset-blobber-stats",
Short: "Reset blobber stats",
Long: `Reset blobber stats`,
Args: cobra.MinimumNArgs(0),
Use: "reset-blobber-stats",
Short: "Reset blobber stats",
Long: `Reset blobber stats`,
Args: cobra.MinimumNArgs(0),
Hidden: true,
Run: func(cmd *cobra.Command, args []string) {
var (
Expand Down

0 comments on commit 3431398

Please sign in to comment.