File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,11 +12,13 @@ import (
12
12
)
13
13
14
14
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
16
16
x , y := sdk .GetConfig ().GetBech32AccountAddrPrefix (), sdk .GetConfig ().GetBech32AccountPubPrefix ()
17
17
t .Cleanup (func () {
18
18
sdk .GetConfig ().SetBech32PrefixForAccount (x , y )
19
19
})
20
+
21
+ // set custom Bech32 settings
20
22
sdk .GetConfig ().SetBech32PrefixForAccount ("purple" , "purple" )
21
23
22
24
// prepare test data
@@ -32,6 +34,7 @@ func TestBuildContractAddressClassic(t *testing.T) {
32
34
var specs []Spec
33
35
require .NoError (t , json .Unmarshal ([]byte (goldenMasterClassicContractAddr ), & specs ))
34
36
require .NotEmpty (t , specs )
37
+
35
38
// run test on prepared test data
36
39
for i , spec := range specs {
37
40
t .Run (fmt .Sprintf ("case %d" , i ), func (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments