core: fix ineffassign warning in test code

ineffectual assignment to err (ineffassign)
This commit is contained in:
Roman Khimov 2021-05-12 19:37:14 +03:00
parent ec50bb4041
commit 4cd3da99b4
3 changed files with 5 additions and 2 deletions

View file

@ -238,6 +238,7 @@ func TestGetBlock(t *testing.T) {
t.Run("non-empty block", func(t *testing.T) {
tx, err := testchain.NewTransferFromOwner(bc, bc.contracts.NEO.Hash,
random.Uint160(), 1, 1, 1000)
require.NoError(t, err)
b := bc.newBlock(tx)
require.NoError(t, bc.AddHeaders(&b.Header))