From 6e0af5ac9091e0fa1a9084a1c19370e83835fc2e Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 20 Oct 2023 17:23:35 +0300 Subject: [PATCH] network: fix linter warning Fix the following linter warning: ``` dot-imports: should not use dot imports (revive) ``` Signed-off-by: Anna Shaleva --- pkg/network/payload/inventory_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/network/payload/inventory_test.go b/pkg/network/payload/inventory_test.go index 3b684367b..d4c5c4917 100644 --- a/pkg/network/payload/inventory_test.go +++ b/pkg/network/payload/inventory_test.go @@ -6,13 +6,13 @@ import ( "github.com/nspcc-dev/neo-go/internal/testserdes" "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - . "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/nspcc-dev/neo-go/pkg/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestInventoryEncodeDecode(t *testing.T) { - hashes := []Uint256{ + hashes := []util.Uint256{ hash.Sha256([]byte("a")), hash.Sha256([]byte("b")), } @@ -22,7 +22,7 @@ func TestInventoryEncodeDecode(t *testing.T) { } func TestEmptyInv(t *testing.T) { - msgInv := NewInventory(TXType, []Uint256{}) + msgInv := NewInventory(TXType, []util.Uint256{}) data, err := testserdes.EncodeBinary(msgInv) assert.Nil(t, err)