@@ -19,6 +19,7 @@ import (
1919 "github.com/gorilla/mux"
2020 "github.com/stretchr/testify/assert"
2121 "github.com/stretchr/testify/require"
22+
2223 "github.com/vechain/thor/v2/api"
2324 "github.com/vechain/thor/v2/block"
2425 "github.com/vechain/thor/v2/genesis"
@@ -151,7 +152,7 @@ func getAccount(t *testing.T) {
151152 require .NoError (t , err )
152153 assert .Equal (t , http .StatusBadRequest , statusCode , "bad revision" )
153154
154- //revision is optional default `best`
155+ // revision is optional default `best`
155156 res , statusCode , err := tclient .RawHTTPClient ().RawHTTPGet ("/accounts/" + addr .String ())
156157 require .NoError (t , err )
157158 var acc api.Account
@@ -217,7 +218,7 @@ func getCode(t *testing.T) {
217218 require .NoError (t , err )
218219 assert .Equal (t , http .StatusBadRequest , statusCode , "bad revision" )
219220
220- //revision is optional defaut `best`
221+ // revision is optional defaut `best`
221222 res , statusCode , err := tclient .RawHTTPClient ().RawHTTPGet ("/accounts/" + contractAddr .String () + "/code" )
222223 require .NoError (t , err )
223224 var code map [string ]string
@@ -255,7 +256,7 @@ func getStorage(t *testing.T) {
255256 require .NoError (t , err )
256257 assert .Equal (t , http .StatusBadRequest , statusCode , "bad revision" )
257258
258- //revision is optional defaut `best`
259+ // revision is optional defaut `best`
259260 res , statusCode , err := tclient .RawHTTPClient ().RawHTTPGet ("/accounts/" + contractAddr .String () + "/storage/" + storageKey .String ())
260261 require .NoError (t , err )
261262 var value map [string ]string
@@ -342,7 +343,7 @@ func deployContractWithCall(t *testing.T) {
342343 require .NoError (t , err )
343344 assert .Equal (t , http .StatusBadRequest , statusCode , "bad revision" )
344345
345- //revision is optional defaut `best`
346+ // revision is optional defaut `best`
346347 res , _ , err := tclient .RawHTTPClient ().RawHTTPPost ("/accounts" , reqBody )
347348 require .NoError (t , err )
348349 var output * api.CallResult
@@ -443,7 +444,8 @@ func batchCall(t *testing.T) {
443444 To : & contractAddr ,
444445 Data : "data2" ,
445446 Value : nil ,
446- }},
447+ },
448+ },
447449 }
448450 _ , statusCode , err = tclient .RawHTTPClient ().RawHTTPPost ("/accounts/*" , badBody )
449451 require .NoError (t , err )
@@ -488,7 +490,8 @@ func batchCall(t *testing.T) {
488490 To : & contractAddr ,
489491 Data : hexutil .Encode (input ),
490492 Value : nil ,
491- }},
493+ },
494+ },
492495 }
493496
494497 // 'next' revisoun should be valid
0 commit comments