Skip to content

Commit 99ade09

Browse files
committed
Refactoring.
1 parent 29d10f3 commit 99ade09

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

t.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

x/wasm/keeper/addresses_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ import (
1212
)
1313

1414
func TestBuildContractAddressClassic(t *testing.T) {
15-
// preserve current Bech32 settings and make sure they will be restores when this test finishes
15+
// preserve current Bech32 settings and restore them after test completion
1616
x, y := sdk.GetConfig().GetBech32AccountAddrPrefix(), sdk.GetConfig().GetBech32AccountPubPrefix()
1717
t.Cleanup(func() {
1818
sdk.GetConfig().SetBech32PrefixForAccount(x, y)
1919
})
20+
21+
// set custom Bech32 settings
2022
sdk.GetConfig().SetBech32PrefixForAccount("purple", "purple")
2123

2224
// prepare test data
@@ -32,6 +34,7 @@ func TestBuildContractAddressClassic(t *testing.T) {
3234
var specs []Spec
3335
require.NoError(t, json.Unmarshal([]byte(goldenMasterClassicContractAddr), &specs))
3436
require.NotEmpty(t, specs)
37+
3538
// run test on prepared test data
3639
for i, spec := range specs {
3740
t.Run(fmt.Sprintf("case %d", i), func(t *testing.T) {

0 commit comments

Comments
 (0)