Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhernandezb committed Feb 11, 2025
1 parent c3d5dbe commit 1e298dd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions x/globalfee/ante/fee_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,22 @@ func (s *AnteHandlerTestSuite) TestFeeDecoratorAntehandler() {
50_000_000,
strPtr("overallocated gas value"),
},
{
"ok: min_gas_price: 2stake, globalfee: 5stake, feeSent: 500STAKE, unauthorized contract exec",
sdk.NewDecCoins(sdk.NewInt64DecCoin(sdk.DefaultBondDenom, 2)),
sdk.NewDecCoins(sdk.NewInt64DecCoin(sdk.DefaultBondDenom, 5)),
sdk.NewCoins(sdk.NewInt64Coin(sdk.DefaultBondDenom, 500_000_000)),
[]sdk.Msg{
&wasmtypes.MsgExecuteContract{
Sender: addr1.String(),
Contract: contractWithCodeAuth,
Msg: counterResetMsg,
},
},
false,
50_000_000,
nil,
},
}

for _, tc := range testCases {
Expand Down

0 comments on commit 1e298dd

Please sign in to comment.