Skip to content

Commit

Permalink
Merge pull request #164 from 0chain/fix/mobile-sdk
Browse files Browse the repository at this point in the history
Fix/mobile sdk
  • Loading branch information
cnlangzi authored Aug 12, 2022
2 parents 2cb87df + ed2b556 commit 93d144e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cmd/vesting.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func vestingDests(dd []string) (vds []*zcncore.VestingDest, err error) {
return nil, fmt.Errorf("negative amount: %f", amount)
}
vds = append(vds, &zcncore.VestingDest{
ID: common.Key(id),
ID: id,
Amount: common.Balance(zcncore.ConvertToValue(amount)),
})
}
Expand Down Expand Up @@ -367,8 +367,8 @@ var vestingPoolStopCmd = &cobra.Command{
}

var sr zcncore.VestingStopRequest
sr.PoolID = common.Key(poolID)
sr.Destination = common.Key(dest)
sr.PoolID = poolID
sr.Destination = dest

statusBar.Begin()
if err = txn.VestingStop(&sr); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module github.com/0chain/zwalletcli

require (
github.com/0chain/gosdk v1.8.6-0.20220722014622-5fd187945353
github.com/0chain/gosdk v1.8.7-0.20220805122508-49532082b8e5
github.com/icza/bitio v1.1.0
github.com/olekukonko/tablewriter v0.0.5
github.com/spf13/cobra v1.5.0
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ 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.8.6-0.20220722014622-5fd187945353 h1:l9YQTXlo74Vwhq2VepNz5i3OLojlDyKR/M7Hz4gQsAI=
github.com/0chain/gosdk v1.8.6-0.20220722014622-5fd187945353/go.mod h1:JeaXA7gbncHoYbKixUnM58+7S2E9z7IKYY+fV0IQJ/o=
github.com/0chain/gosdk v1.8.7-0.20220805113530-c4d618ccb86a h1:9bnOADnu0bAi0XJVkTY9YxNh9WLzldOjX/fi+xaL9Wc=
github.com/0chain/gosdk v1.8.7-0.20220805113530-c4d618ccb86a/go.mod h1:ZdbSM2r3G9wekID5HHqJFiP2bYrzyheLRWz9DDzmFYw=
github.com/0chain/gosdk v1.8.7-0.20220805122508-49532082b8e5 h1:s905aGZ4vOmpFZOM8r0rSFSb2xasM3p5QboMZJ4ZPyM=
github.com/0chain/gosdk v1.8.7-0.20220805122508-49532082b8e5/go.mod h1:ZdbSM2r3G9wekID5HHqJFiP2bYrzyheLRWz9DDzmFYw=
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
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=
Expand Down

0 comments on commit 93d144e

Please sign in to comment.