@@ -8,15 +8,16 @@ import (
8
8
"net/http/httptest"
9
9
"testing"
10
10
11
+ blst "github.com/supranational/blst/bindings/go"
12
+ "gotest.tools/assert"
13
+
11
14
"github.com/ethereum/go-ethereum/common"
12
15
"github.com/ethereum/go-ethereum/core/types"
13
16
validatorRegistryBindings "github.com/shutter-network/gnosh-contracts/gnoshcontracts/validatorregistry"
14
17
"github.com/shutter-network/rolling-shutter/rolling-shutter/keyperimpl/gnosis/database"
15
18
"github.com/shutter-network/rolling-shutter/rolling-shutter/medley/beaconapiclient"
16
19
"github.com/shutter-network/rolling-shutter/rolling-shutter/medley/testsetup"
17
20
"github.com/shutter-network/rolling-shutter/rolling-shutter/medley/validatorregistry"
18
- blst "github.com/supranational/blst/bindings/go"
19
- "gotest.tools/assert"
20
21
)
21
22
22
23
func TestLegacyValidatorRegisterFilterEvent (t * testing.T ) {
@@ -52,7 +53,7 @@ func TestLegacyValidatorRegisterFilterEvent(t *testing.T) {
52
53
ChainID : msg .ChainID ,
53
54
}
54
55
55
- events := []* validatorRegistryBindings.ValidatorregistryUpdated {& validatorRegistryBindings. ValidatorregistryUpdated {
56
+ events := []* validatorRegistryBindings.ValidatorregistryUpdated {{
56
57
Signature : sig .Compress (),
57
58
Message : msg .Marshal (),
58
59
Raw : types.Log {
@@ -106,7 +107,7 @@ func TestAggregateValidatorRegisterFilterEvent(t *testing.T) {
106
107
ChainID : msg .ChainID ,
107
108
}
108
109
109
- events := []* validatorRegistryBindings.ValidatorregistryUpdated {& validatorRegistryBindings. ValidatorregistryUpdated {
110
+ events := []* validatorRegistryBindings.ValidatorregistryUpdated {{
110
111
Signature : sig .Compress (),
111
112
Message : msg .Marshal (),
112
113
Raw : types.Log {
@@ -121,6 +122,7 @@ func TestAggregateValidatorRegisterFilterEvent(t *testing.T) {
121
122
}
122
123
123
124
func mockBeaconClient (t * testing.T , pubKeyHex string ) string {
125
+ t .Helper ()
124
126
return httptest .NewServer (http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
125
127
x := beaconapiclient.GetValidatorByIndexResponse {
126
128
Finalized : true ,
0 commit comments