Skip to content

Commit

Permalink
Cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Feb 15, 2024
1 parent dbbb0fe commit 4964b4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions x/fungible/keeper/msg_server_update_system_contract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,23 +190,23 @@ func TestKeeper_UpdateSystemContract(t *testing.T) {
// fail on first evm call
mockEVMKeeper.MockEVMFailCallOnce()

// can update the system contract
// can't update the system contract
_, err = msgServer.UpdateSystemContract(ctx, types.NewMsgUpdateSystemContract(admin, newSystemContract.Hex()))
require.ErrorIs(t, err, types.ErrContractCall)

// fail on second evm call
mockEVMKeeper.MockEVMSuccessCallOnce()
mockEVMKeeper.MockEVMFailCallOnce()

// can update the system contract
// can't update the system contract
_, err = msgServer.UpdateSystemContract(ctx, types.NewMsgUpdateSystemContract(admin, newSystemContract.Hex()))
require.ErrorIs(t, err, types.ErrContractCall)

// fail on third evm call
mockEVMKeeper.MockEVMSuccessCallTimes(2)
mockEVMKeeper.MockEVMFailCallOnce()

// can update the system contract
// can't update the system contract
_, err = msgServer.UpdateSystemContract(ctx, types.NewMsgUpdateSystemContract(admin, newSystemContract.Hex()))
require.ErrorIs(t, err, types.ErrContractCall)
})
Expand Down
4 changes: 2 additions & 2 deletions x/fungible/keeper/system_contract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func TestKeeper_QueryWZetaBalanceOfFails(t *testing.T) {

deploySystemContractsWithMockEvmKeeper(t, ctx, k, mockEVMKeeper)

// deposit
// query
mockEVMKeeper.MockEVMFailCallOnce()
_, err = k.QueryWZetaBalanceOf(ctx, ethAddr)
require.ErrorIs(t, err, types.ErrContractCall)
Expand Down Expand Up @@ -294,7 +294,7 @@ func TestKeeper_QueryWZetaBalanceOfFailsToUnpack(t *testing.T) {

deploySystemContractsWithMockEvmKeeper(t, ctx, k, mockEVMKeeper)

// deposit
// query
mockEVMKeeper.MockEVMSuccessCallOnce()
_, err = k.QueryWZetaBalanceOf(ctx, ethAddr)
require.ErrorIs(t, err, types.ErrABIUnpack)
Expand Down

0 comments on commit 4964b4a

Please sign in to comment.