Skip to content

Commit

Permalink
fix: Save dispatch strategy for recurring governance transfer in the …
Browse files Browse the repository at this point in the history
…database
  • Loading branch information
ze97286 committed Mar 20, 2024
1 parent 1d019df commit fa1f5fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

### 🐛 Fixes

- [](https://github.com/vegaprotocol/vega/issues/xxxxx)
- [10946](https://github.com/vegaprotocol/vega/issues/10946) - Save dispatch strategy for recurring governance transfer in the database.

## 0.75.0

Expand Down
5 changes: 3 additions & 2 deletions core/types/banking.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ func (g *GovernanceTransfer) IntoEvent(amount *num.Uint, reason, gameID *string)
} else {
out.Kind = &eventspb.Transfer_RecurringGovernance{
RecurringGovernance: &eventspb.RecurringGovernanceTransfer{
StartEpoch: g.Config.RecurringTransferConfig.StartEpoch,
EndEpoch: g.Config.RecurringTransferConfig.EndEpoch,
StartEpoch: g.Config.RecurringTransferConfig.StartEpoch,
EndEpoch: g.Config.RecurringTransferConfig.EndEpoch,
DispatchStrategy: g.Config.RecurringTransferConfig.DispatchStrategy,
},
}
}
Expand Down
1 change: 1 addition & 0 deletions datanode/entities/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ func (t *Transfer) ToProto(ctx context.Context, accountSource AccountSource) (*e
recurringTransfer := &eventspb.RecurringGovernanceTransfer{
StartEpoch: *t.StartEpoch,
}
recurringTransfer.DispatchStrategy = t.DispatchStrategy

if t.EndEpoch != nil {
endEpoch := *t.EndEpoch
Expand Down

0 comments on commit fa1f5fd

Please sign in to comment.