From 4964b4a6f289a072a277f224a43130b3c7d112bb Mon Sep 17 00:00:00 2001 From: skosito Date: Thu, 15 Feb 2024 16:14:56 +0100 Subject: [PATCH] Cleanup comments --- x/fungible/keeper/msg_server_update_system_contract_test.go | 6 +++--- x/fungible/keeper/system_contract_test.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/x/fungible/keeper/msg_server_update_system_contract_test.go b/x/fungible/keeper/msg_server_update_system_contract_test.go index 130d4a63e5..ab3c7a43fc 100644 --- a/x/fungible/keeper/msg_server_update_system_contract_test.go +++ b/x/fungible/keeper/msg_server_update_system_contract_test.go @@ -190,7 +190,7 @@ 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) @@ -198,7 +198,7 @@ func TestKeeper_UpdateSystemContract(t *testing.T) { 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) @@ -206,7 +206,7 @@ func TestKeeper_UpdateSystemContract(t *testing.T) { 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) }) diff --git a/x/fungible/keeper/system_contract_test.go b/x/fungible/keeper/system_contract_test.go index 850952e162..e2340cb4c1 100644 --- a/x/fungible/keeper/system_contract_test.go +++ b/x/fungible/keeper/system_contract_test.go @@ -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) @@ -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)