Skip to content

Commit

Permalink
fix uint32
Browse files Browse the repository at this point in the history
  • Loading branch information
gusin13 committed Nov 6, 2024
1 parent 5f92cb6 commit b0be202
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/clients/bbnclient/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ type StakingParams struct {
}

type CheckpointParams struct {
BtcConfirmationDepth uint64 `bson:"btc_confirmation_depth"`
CheckpointFinalizationTimeout uint64 `bson:"checkpoint_finalization_timeout"`
BtcConfirmationDepth uint32 `bson:"btc_confirmation_depth"`
CheckpointFinalizationTimeout uint32 `bson:"checkpoint_finalization_timeout"`
CheckpointTag string `bson:"checkpoint_tag"`
}

Expand All @@ -51,8 +51,8 @@ func FromBbnStakingParams(params stakingtypes.Params) *StakingParams {

func FromBbnCheckpointParams(params checkpointtypes.Params) *CheckpointParams {
return &CheckpointParams{
BtcConfirmationDepth: uint64(params.BtcConfirmationDepth),
CheckpointFinalizationTimeout: uint64(params.CheckpointFinalizationTimeout),
BtcConfirmationDepth: params.BtcConfirmationDepth,
CheckpointFinalizationTimeout: params.CheckpointFinalizationTimeout,
CheckpointTag: params.CheckpointTag,
}
}

0 comments on commit b0be202

Please sign in to comment.