Skip to content

Commit

Permalink
update Readme and godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
likhita-809 committed Nov 6, 2023
1 parent e90053e commit 3a27c0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion x/protocolpool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ The message will fail under the following conditions:
* The number of tranches is not a positive integer.
* The period length is not a positive integer.

*Disclaimer: The behavior described here is based on the current implementation and may be subject to changes in future versions.*
*Disclaimer: If two budgets to the same address are created, the budget would be updated with the new budget.*
```go
func (k MsgServer) SubmitBudgetProposal(ctx context.Context, msg *types.MsgSubmitBudgetProposal) (*types.MsgSubmitBudgetProposalResponse, error) {
// ... (existing code)
Expand Down
1 change: 1 addition & 0 deletions x/protocolpool/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func (k MsgServer) SubmitBudgetProposal(ctx context.Context, msg *types.MsgSubmi
}

// set budget proposal in state
// Note: If two budgets to the same address are created, the budget would be updated with the new budget.
err = k.BudgetProposal.Set(ctx, recipient, *budgetProposal)
if err != nil {
return nil, err
Expand Down

0 comments on commit 3a27c0c

Please sign in to comment.