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 (
1212)
1313
1414func 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 ) {
You can’t perform that action at this time.
0 commit comments