File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -26,10 +26,19 @@ type (
2626 Config = network.Config
2727)
2828
29- // New creates instance with fully configured Chihuahua network, along with
30- // creating a funded account for each name provided
31- func New (t * testing.T , config network.Config ) * network.Network {
32- net := network .New (t , config )
29+ // New creates instance with fully configured cosmos network.
30+ // Accepts optional config, that will be used in place of the DefaultConfig() if provided.
31+ func New (t * testing.T , configs ... network.Config ) * network.Network {
32+ if len (configs ) > 1 {
33+ panic ("at most one config should be provided" )
34+ }
35+ var cfg network.Config
36+ if len (configs ) == 0 {
37+ cfg = DefaultConfig ()
38+ } else {
39+ cfg = configs [0 ]
40+ }
41+ net := network .New (t , cfg )
3342 t .Cleanup (net .Cleanup )
3443 return net
3544}
You can’t perform that action at this time.
0 commit comments