Update e2e_convert_cosmos_coins_test.go

This commit is contained in:
Volodymyr Buhai 2025-01-03 19:55:42 +02:00 committed by GitHub
parent 559d1beb03
commit 85c221c3a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,6 +20,17 @@ import (
const initialCosmosCoinConversionDenomFunds = int64(1e4)
// setupConvertToCoinTest prepares a test environment for cosmos coin conversion tests.
// It retrieves allowed cosmos denoms from parameters, sets up initial funds, and creates a funded test account.
//
// Parameters:
// - suite: The test suite instance
// - accountName: Name of the test account to be created
//
// Returns:
// - denom: The cosmos denom used for testing
// - initialFunds: Initial funds allocated to the test account
// - user: The created and funded test account
func setupConvertToCoinTest(
suite *IntegrationTestSuite, accountName string,
) (denom string, initialFunds sdk.Coins, user *testutil.SigningAccount) {