diff --git a/p2p/enr/enr_test.go b/p2p/enr/enr_test.go index c6fbaef8f0..b3f72c948d 100644 --- a/p2p/enr/enr_test.go +++ b/p2p/enr/enr_test.go @@ -91,7 +91,7 @@ func TestGetSetClientInfo(t *testing.T) { // Without build info - client := Client(Client{&name, &ver, nil}) + client := Client{&name, &ver, nil} var r Record r.Set(client) @@ -101,7 +101,7 @@ func TestGetSetClientInfo(t *testing.T) { // With build info - clientWithBuild := Client(Client{&name, &ver, &build}) + clientWithBuild := Client{&name, &ver, &build} var r2 Record r2.Set(clientWithBuild) @@ -117,7 +117,7 @@ func TestDecodingENRWith7636(t *testing.T) { if err != nil { t.Error(err) - return; + return } record, _, err := decodeRecord(rlp.NewStream(bytes.NewReader(b), 0)) diff --git a/p2p/enr/entries.go b/p2p/enr/entries.go index 292616a56e..ac92b1a4ae 100644 --- a/p2p/enr/entries.go +++ b/p2p/enr/entries.go @@ -154,7 +154,7 @@ func (v *IPv4) DecodeRLP(s *rlp.Stream) error { } // Client is the "client" key, which holds the EIP-7636 client info. -type Client [3]*string; +type Client [3]*string func (v Client) ENRKey() string { return "client" }