Revert "native: ignore decoding errors during cache init"
This reverts commit 822722bd2e
.
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
6824bd9f40
commit
1d189fd90c
3 changed files with 11 additions and 9 deletions
|
@ -85,14 +85,12 @@ func TestManagement_Initialize(t *testing.T) {
|
|||
mgmt := newManagement()
|
||||
require.NoError(t, mgmt.InitializeCache(0, d))
|
||||
})
|
||||
/* See #2801
|
||||
t.Run("invalid contract state", func(t *testing.T) {
|
||||
d := dao.NewSimple(storage.NewMemoryStore(), false)
|
||||
mgmt := newManagement()
|
||||
d.PutStorageItem(mgmt.ID, []byte{PrefixContract}, state.StorageItem{0xFF})
|
||||
require.Error(t, mgmt.InitializeCache(d))
|
||||
require.Error(t, mgmt.InitializeCache(0, d))
|
||||
})
|
||||
*/
|
||||
}
|
||||
|
||||
func TestManagement_GetNEP17Contracts(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue