Skip to content

Commit

Permalink
Made cleanup function private.
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszDepta committed Oct 13, 2023
1 parent 76f6f3d commit 257cd7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/wasm/keeper/addresses_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 257cd7e

Please sign in to comment.