diff --git a/protocol/testutil/bank/bank_helpers.go b/protocol/testutil/bank/bank_helpers.go index 38b79ab317..b3bff61328 100644 --- a/protocol/testutil/bank/bank_helpers.go +++ b/protocol/testutil/bank/bank_helpers.go @@ -1,12 +1,14 @@ package bank import ( - sdkmath "cosmossdk.io/math" "fmt" + + sdkmath "cosmossdk.io/math" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/testutil" "github.com/cosmos/cosmos-sdk/testutil/network" sdk "github.com/cosmos/cosmos-sdk/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" @@ -23,12 +25,7 @@ func GetModuleAccUsdcBalance( balance int64, err error, ) { - moduleAddress, err := codec.InterfaceRegistry().SigningContext().AddressCodec().BytesToString( - []byte(moduleName), - ) - if err != nil { - return 0, err - } + moduleAddress := authtypes.NewModuleAddress(moduleName) resp, err := testutil.GetRequest(fmt.Sprintf( "%s/cosmos/bank/v1beta1/balances/%s", val.APIAddress, diff --git a/protocol/x/clob/client/cli/cancel_order_cli_test.go b/protocol/x/clob/client/cli/cancel_order_cli_test.go index aa498ade02..39c70bc0cb 100644 --- a/protocol/x/clob/client/cli/cancel_order_cli_test.go +++ b/protocol/x/clob/client/cli/cancel_order_cli_test.go @@ -176,7 +176,6 @@ func (s *CancelOrderIntegrationTestSuite) SetupTest() { // The subaccounts are then queried and assertions are performed on their QuoteBalance and PerpetualPositions. // The account which places the orders is also the validator's AccAddress. func (s *CancelOrderIntegrationTestSuite) TestCLICancelPendingOrder() { - s.T().Skip("TODO(CORE-538): Resolve why bank balance for subaccounts module is not found.") val := s.network.Validators[0] ctx := val.ClientCtx @@ -294,7 +293,6 @@ func (s *CancelOrderIntegrationTestSuite) TestCLICancelPendingOrder() { // The subaccounts are then queried and assertions are performed on their QuoteBalance and PerpetualPositions. // The account which places the orders is also the validator's AccAddress. func (s *CancelOrderIntegrationTestSuite) TestCLICancelMatchingOrders() { - s.T().Skip("TODO(CORE-538): Resolve why bank balance for subaccounts module is not found.") val := s.network.Validators[0] ctx := val.ClientCtx diff --git a/protocol/x/clob/client/cli/liquidations_cli_test.go b/protocol/x/clob/client/cli/liquidations_cli_test.go index adeeb84b07..6c4b7bb9cd 100644 --- a/protocol/x/clob/client/cli/liquidations_cli_test.go +++ b/protocol/x/clob/client/cli/liquidations_cli_test.go @@ -54,7 +54,6 @@ type LiquidationsIntegrationTestSuite struct { } func TestLiquidationOrderIntegrationTestSuite(t *testing.T) { - t.Skip("TODO(CORE-538): Resolve why bank balance for subaccounts module is not found.") // Deterministic Mnemonic. validatorMnemonic := constants.AliceMnenomic diff --git a/protocol/x/clob/client/cli/place_order_cli_test.go b/protocol/x/clob/client/cli/place_order_cli_test.go index 0908a8a0fe..0d36677eb3 100644 --- a/protocol/x/clob/client/cli/place_order_cli_test.go +++ b/protocol/x/clob/client/cli/place_order_cli_test.go @@ -48,7 +48,6 @@ type PlaceOrderIntegrationTestSuite struct { } func TestPlaceOrderIntegrationTestSuite(t *testing.T) { - t.Skip("TODO(CORE-538): Resolve why bank balance for subaccounts module is not found.") // Deterministic Mnemonic. validatorMnemonic := constants.AliceMnenomic