Skip to content

Commit

Permalink
Update deterministic gas for govtypesv1.MsgDeposit (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtek-coreum authored Oct 27, 2023
1 parent c03ed9c commit 3d7c477
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions x/deterministicgas/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ func DefaultConfig() Config {

MsgToMsgURL(&govtypesv1.MsgVote{}): constantGasFunc(6000),
MsgToMsgURL(&govtypesv1.MsgVoteWeighted{}): constantGasFunc(6500),
// FIXME (v47-deterministic): We must add integration test executing this message to have data to analyze
MsgToMsgURL(&govtypesv1.MsgDeposit{}): constantGasFunc(52000),
MsgToMsgURL(&govtypesv1.MsgDeposit{}): constantGasFunc(65000),

// nft
MsgToMsgURL(&nfttypes.MsgSend{}): constantGasFunc(25000),
Expand Down
2 changes: 1 addition & 1 deletion x/deterministicgas/spec/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ TotalGas = 65000 + 2 * 70000 + 2 * 1000 + max(0, 2050-2048) * 10
| `/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission` | 22000 |
| `/cosmos.feegrant.v1beta1.MsgGrantAllowance` | 11000 |
| `/cosmos.feegrant.v1beta1.MsgRevokeAllowance` | 2500 |
| `/cosmos.gov.v1.MsgDeposit` | 52000 |
| `/cosmos.gov.v1.MsgDeposit` | 65000 |
| `/cosmos.gov.v1.MsgVote` | 6000 |
| `/cosmos.gov.v1.MsgVoteWeighted` | 6500 |
| `/cosmos.gov.v1beta1.MsgDeposit` | 85000 |
Expand Down

0 comments on commit 3d7c477

Please sign in to comment.