Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
likhita-809 committed Nov 6, 2023
1 parent 3a27c0c commit 3b11131
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions x/protocolpool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,9 @@ 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: 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)

// Set the budget proposal in the state.
err = k.BudgetProposal.Set(ctx, recipient, *budgetProposal)
if err != nil {
return nil, err
}

// ... (rest of the code)
}
```
:::warning
If two budgets to the same address are created, the budget would be updated with the new budget.
:::

```go reference
https://github.com/cosmos/cosmos-sdk/blob/97724493d792517ba2be8969078b5f92ad04d79c/x/protocolpool/keeper/msg_server.go#L39-l61
Expand Down

0 comments on commit 3b11131

Please sign in to comment.