Skip to content

Commit

Permalink
Fix uint8 to bytes error
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 authored and unclezoro committed Aug 17, 2022
1 parent df1c2f5 commit e69cecf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/stake/cross_stake/cross_stake.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (app *CrossStakeApp) handleDelegate(ctx sdk.Context, pack *types.CrossStake
}

resultTags := sdk.NewTags(
types.TagCrossStakePackageType, []byte(uint8(types.CrossStakeTypeDelegate)),
types.TagCrossStakePackageType, []byte{uint8(types.CrossStakeTypeDelegate)},
)
resultTags = append(resultTags, sdk.GetPegOutTag(delegation.Denom, delegation.Amount))

Expand Down Expand Up @@ -239,7 +239,7 @@ func (app *CrossStakeApp) handleUndelegate(ctx sdk.Context, pack *types.CrossSta
}

resultTags := sdk.NewTags(
types.TagCrossStakePackageType, []byte(uint8(types.CrossStakeTypeUndelegate)),
types.TagCrossStakePackageType, []byte{uint8(types.CrossStakeTypeUndelegate)},
)
return sdk.ExecuteResult{
Tags: resultTags,
Expand Down Expand Up @@ -315,7 +315,7 @@ func (app *CrossStakeApp) handleRedelegate(ctx sdk.Context, pack *types.CrossSta
}

resultTags := sdk.NewTags(
types.TagCrossStakePackageType, []byte(uint8(types.CrossStakeTypeRedelegate)),
types.TagCrossStakePackageType, []byte{uint8(types.CrossStakeTypeRedelegate)},
)
return sdk.ExecuteResult{
Tags: resultTags,
Expand Down

0 comments on commit e69cecf

Please sign in to comment.