Skip to content

Commit

Permalink
modify height type
Browse files Browse the repository at this point in the history
  • Loading branch information
xiemylogos committed Jul 30, 2019
1 parent caca689 commit 6291df6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/info_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func getShardChainConfig(ctx *cli.Context) error {
if err != nil {
return fmt.Errorf("ParseUint height error:%s", err)
}
chainConfig, err := utils.GetShardChainConfig(shardID, height)
chainConfig, err := utils.GetShardChainConfig(shardID, uint32(height))
if err != nil {
return fmt.Errorf("GetShardChainConfig err:%s", err)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/utils/ont.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ func GetTxHeight(txHash string) (uint32, error) {
return height, nil
}

func GetShardChainConfig(shardID uint64, height uint64) (*vconfig.ChainConfig, error) {
func GetShardChainConfig(shardID uint64, height uint32) (*vconfig.ChainConfig, error) {
data, ontErr := sendRpcRequest("getshardchainconfig", []interface{}{shardID, height})
if ontErr != nil {
return nil, fmt.Errorf("getshardchainconfig shardID:%d,height:%d,err:%s", shardID, height, ontErr.Error)
Expand Down

0 comments on commit 6291df6

Please sign in to comment.