From 257cd7e0bca334ff9b4f9ca44e75c7287b47e8ba Mon Sep 17 00:00:00 2001 From: Dariusz Depta Date: Fri, 13 Oct 2023 09:41:29 +0200 Subject: [PATCH] Made cleanup function private. --- x/wasm/keeper/addresses_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/wasm/keeper/addresses_test.go b/x/wasm/keeper/addresses_test.go index 5a5665ab2..c3b24bc41 100644 --- a/x/wasm/keeper/addresses_test.go +++ b/x/wasm/keeper/addresses_test.go @@ -11,7 +11,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -func PrepareCleanup(t *testing.T) { +func prepareCleanup(t *testing.T) { // preserve current Bech32 settings and restore them after test completion x, y := sdk.GetConfig().GetBech32AccountAddrPrefix(), sdk.GetConfig().GetBech32AccountPubPrefix() c := sdk.IsAddrCacheEnabled() @@ -29,7 +29,7 @@ func PrepareCleanup(t *testing.T) { func TestBuildContractAddressClassic(t *testing.T) { // set cleanup function - PrepareCleanup(t) + prepareCleanup(t) // prepare test data specs := []struct { codeId uint64 @@ -71,7 +71,7 @@ func TestBuildContractAddressClassic(t *testing.T) { func TestBuildContractAddressPredictable(t *testing.T) { // set cleanup function - PrepareCleanup(t) + prepareCleanup(t) // test vectors generated via cosmjs: https://github.com/cosmos/cosmjs/pull/1253/files type Spec struct { In struct {