From 50ba5e342041a4d457e8ebb8bfb1045eed26a81d Mon Sep 17 00:00:00 2001 From: Likes To Eat Fish Date: Mon, 22 Jul 2024 10:47:47 +0700 Subject: [PATCH] minor --- x/meshsecurityprovider/ibc_module.go | 2 +- x/meshsecurityprovider/keeper/keeper_test.go | 7 ++++--- x/meshsecurityprovider/module.go | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/x/meshsecurityprovider/ibc_module.go b/x/meshsecurityprovider/ibc_module.go index 8cb7a883..ae7a90e4 100644 --- a/x/meshsecurityprovider/ibc_module.go +++ b/x/meshsecurityprovider/ibc_module.go @@ -1,4 +1,4 @@ -package provider +package meshsecurityprovider import ( "fmt" diff --git a/x/meshsecurityprovider/keeper/keeper_test.go b/x/meshsecurityprovider/keeper/keeper_test.go index 2817ada8..1ff7f433 100644 --- a/x/meshsecurityprovider/keeper/keeper_test.go +++ b/x/meshsecurityprovider/keeper/keeper_test.go @@ -3,6 +3,7 @@ package keeper import ( "testing" + "github.com/cometbft/cometbft/libs/rand" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/osmosis-labs/mesh-security-sdk/x/meshsecurityprovider/types" "github.com/stretchr/testify/require" @@ -13,7 +14,7 @@ func TestStoreDelegator(t *testing.T) { k := keepers.MeshKeeperProvider d1 := types.Depositors{ - Address: "delegate", + Address: sdk.AccAddress(rand.Bytes(32)).String(), Tokens: sdk.NewCoins([]sdk.Coin{sdk.NewCoin("osmo", sdk.NewInt(123))}...), } err := k.SetDepositors(pCtx, d1) @@ -39,9 +40,9 @@ func TestStoreIntermediary(t *testing.T) { coin := sdk.NewCoin("osmo", sdk.NewInt(123)) e1 := types.Intermediary{ - ConsumerValidator: "validator", + ConsumerValidator: sdk.ValAddress(rand.Bytes(32)).String(), ChainId: "osmo-1", - ContractAddress: "address", + ContractAddress: sdk.AccAddress(rand.Bytes(32)).String(), Jailed: false, Tombstoned: false, Status: types.Bonded, diff --git a/x/meshsecurityprovider/module.go b/x/meshsecurityprovider/module.go index 79062e05..aefb7763 100644 --- a/x/meshsecurityprovider/module.go +++ b/x/meshsecurityprovider/module.go @@ -1,4 +1,4 @@ -package provider +package meshsecurityprovider import ( "context"