@@ -82,7 +82,7 @@ func TestSendRawMessage(t *testing.T) {
8282}
8383
8484func TestRunSmcMethod (t * testing.T ) {
85- tongoClient , err := NewClientWithDefaultMainnet ( )
85+ tongoClient , err := NewClient ( Mainnet (), FromEnvs () )
8686 if err != nil {
8787 log .Fatalf ("Unable to create tongo client: %v" , err )
8888 }
@@ -94,7 +94,7 @@ func TestRunSmcMethod(t *testing.T) {
9494}
9595
9696func TestGetAllShards (t * testing.T ) {
97- api , err := NewClientWithDefaultMainnet ( )
97+ api , err := NewClient ( Mainnet (), FromEnvs () )
9898 if err != nil {
9999 t .Fatal (err )
100100 }
@@ -115,7 +115,7 @@ func TestGetAllShards(t *testing.T) {
115115}
116116
117117func TestGetBlock (t * testing.T ) {
118- api , err := NewClientWithDefaultMainnet ( )
118+ api , err := NewClient ( Mainnet (), FromEnvs () )
119119 if err != nil {
120120 t .Fatal (err )
121121 }
@@ -136,7 +136,7 @@ func TestGetBlock(t *testing.T) {
136136}
137137
138138func TestGetConfigAll (t * testing.T ) {
139- api , err := NewClientWithDefaultMainnet ( )
139+ api , err := NewClient ( Mainnet (), FromEnvs () )
140140 if err != nil {
141141 t .Fatal (err )
142142 }
@@ -147,7 +147,7 @@ func TestGetConfigAll(t *testing.T) {
147147}
148148
149149func TestGetAccountState (t * testing.T ) {
150- api , err := NewClientWithDefaultMainnet ( )
150+ api , err := NewClient ( Mainnet (), FromEnvs () )
151151 if err != nil {
152152 t .Fatal (err )
153153 }
@@ -180,7 +180,7 @@ func TestGetAccountState(t *testing.T) {
180180}
181181
182182func TestLookupBlock (t * testing.T ) {
183- api , err := NewClientWithDefaultMainnet ( )
183+ api , err := NewClient ( Mainnet (), FromEnvs () )
184184 if err != nil {
185185 t .Fatal (err )
186186 }
@@ -202,7 +202,7 @@ func TestLookupBlock(t *testing.T) {
202202}
203203
204204func TestGetOneTransaction (t * testing.T ) {
205- tongoClient , err := NewClientWithDefaultMainnet ( )
205+ tongoClient , err := NewClient ( Mainnet (), FromEnvs () )
206206 if err != nil {
207207 log .Fatalf ("Unable to create tongo client: %v" , err )
208208 }
@@ -242,7 +242,7 @@ func TestGetOneTransaction(t *testing.T) {
242242}
243243
244244func TestGetLibraries (t * testing.T ) {
245- tongoClient , err := NewClientWithDefaultMainnet ( )
245+ tongoClient , err := NewClient ( Mainnet (), FromEnvs () )
246246 if err != nil {
247247 log .Fatalf ("Unable to create tongo client: %v" , err )
248248 }
@@ -323,7 +323,7 @@ func TestDnsResolve(t *testing.T) {
323323}
324324
325325func TestGetRootDNS (t * testing.T ) {
326- tongoClient , err := NewClientWithDefaultMainnet ( )
326+ tongoClient , err := NewClient ( Mainnet (), FromEnvs () )
327327 if err != nil {
328328 log .Fatalf ("Unable to create tongo client: %v" , err )
329329 }
@@ -350,7 +350,7 @@ func TestClient_GetTransactionsForUnknownAccount(t *testing.T) {
350350
351351func TestMappingTransactionsToBlocks (t * testing.T ) {
352352 const limit = 100
353- c , err := NewClientWithDefaultMainnet ( )
353+ c , err := NewClient ( Mainnet (), FromEnvs () )
354354 if err != nil {
355355 t .Fatal (err )
356356 }
0 commit comments