Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix alloc min lock #555

Merged
merged 1 commit into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/newallocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ var newallocationCmd = &cobra.Command{
}

if costOnly {
minCost, err := sdk.GetAllocationMinLock(*datashards, *parityshards, *size, readPrice, writePrice)
minCost, err := sdk.GetAllocationMinLock(*datashards, *parityshards, *size, writePrice)
if err != nil {
log.Fatal("Error fetching cost: ", err)
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/0chain/errors v1.0.3
github.com/0chain/gosdk v1.10.1-0.20231119132211-1dc0f7fa4475
github.com/0chain/gosdk v1.10.1-0.20231126184833-be1433564e88
github.com/icza/bitio v1.1.0
github.com/olekukonko/tablewriter v0.0.5
github.com/spf13/cobra v1.6.0
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ github.com/0chain/common v0.0.6-0.20230127095721-8df4d1d72565 h1:z+DtCR8mBsjPnEs
github.com/0chain/common v0.0.6-0.20230127095721-8df4d1d72565/go.mod h1:UyDC8Qyl5z9lGkCnf9RHJPMektnFX8XtCJZHXCCVj8E=
github.com/0chain/errors v1.0.3 h1:QQZPFxTfnMcRdt32DXbzRQIfGWmBsKoEdszKQDb0rRM=
github.com/0chain/errors v1.0.3/go.mod h1:xymD6nVgrbgttWwkpSCfLLEJbFO6iHGQwk/yeSuYkIc=
github.com/0chain/gosdk v1.10.1-0.20231115115747-895c7f001283 h1:P2XA6CMnd79nGK4h/pPa9P8VuNdCz6WP2CtNbiw73Ds=
github.com/0chain/gosdk v1.10.1-0.20231115115747-895c7f001283/go.mod h1:l/c+X5v6RMyzWUib6FFPdK5bTAzAJ7PojhEvELp3LGk=
github.com/0chain/gosdk v1.10.1-0.20231119132211-1dc0f7fa4475 h1:qX6V8oIAef5v+rQ2S3KoA/8GMBK6vW8yW9e3yRYA0Pw=
github.com/0chain/gosdk v1.10.1-0.20231119132211-1dc0f7fa4475/go.mod h1:l/c+X5v6RMyzWUib6FFPdK5bTAzAJ7PojhEvELp3LGk=
github.com/0chain/gosdk v1.10.1-0.20231126184833-be1433564e88 h1:Jrr4dehm2qOkQR4kUoc3IvFt78V0igITXhhgoD2dAqw=
github.com/0chain/gosdk v1.10.1-0.20231126184833-be1433564e88/go.mod h1:l/c+X5v6RMyzWUib6FFPdK5bTAzAJ7PojhEvELp3LGk=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/Luzifer/go-openssl/v3 v3.1.0 h1:QqKqo6kYXGGUsvtUoCpRZm8lHw+jDfhbzr36gVj+/gw=
Expand Down
Loading