Skip to content

Commit 45c3a7e

Browse files
lint changes
1 parent fdd3a5d commit 45c3a7e

File tree

3 files changed

+510
-4
lines changed

3 files changed

+510
-4
lines changed

rolling-shutter/keyperimpl/gnosis/validatorsyncer_integration_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ func mockBeaconClientWithJSONData(t *testing.T) string {
6767

6868
byteValue, _ := io.ReadAll(jsonFile)
6969
var result map[string]string
70-
json.Unmarshal([]byte(byteValue), &result)
70+
err = json.Unmarshal([]byte(byteValue), &result)
71+
assert.NilError(t, err)
7172

7273
return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
7374
parts := strings.Split(r.URL.Path, "/")
@@ -96,6 +97,7 @@ func readMsg(t *testing.T) map[string]string {
9697

9798
byteValue, _ := io.ReadAll(jsonFile)
9899
var result map[string]string
99-
json.Unmarshal([]byte(byteValue), &result)
100+
err = json.Unmarshal([]byte(byteValue), &result)
101+
assert.NilError(t, err)
100102
return result
101103
}

testdata/signedRegistrations.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
{"message":"0x0100000000000027d8a9289a3dd14febe10611119be81e5d35eaac30840000000000000000000001f40000000001","signature":"0x941698fb21c716ac4b9eae341c2eb63cbafb1206e1382986130ca06a3879a5f6a111a582f95233517abef65aac9e4a1912ea81b5b7584635ea3773969c9af747f6cc5d5c1e2aa628b6779fa56c02f6147a151ca46677b53bc03cbba1a9a079ed"}
1+
{
2+
"message": "0x0100000000000027d8a9289a3dd14febe10611119be81e5d35eaac30840000000000000000000001f40000000001",
3+
"signature": "0x941698fb21c716ac4b9eae341c2eb63cbafb1206e1382986130ca06a3879a5f6a111a582f95233517abef65aac9e4a1912ea81b5b7584635ea3773969c9af747f6cc5d5c1e2aa628b6779fa56c02f6147a151ca46677b53bc03cbba1a9a079ed"
4+
}

testdata/validatorInfo.json

Lines changed: 502 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)