core: pop all args from stack before validation checks in Notify

We should match the C# behaviour.
This commit is contained in:
Anna Shaleva 2021-03-31 13:54:53 +03:00
parent 793f27084b
commit 93530fa8fa
2 changed files with 3 additions and 3 deletions

View file

@ -142,7 +142,7 @@ func TestNotify(t *testing.T) {
return ic
}
t.Run("big name", func(t *testing.T) {
ic := newIC(string(make([]byte, MaxEventNameLen+1)), []byte{42})
ic := newIC(string(make([]byte, MaxEventNameLen+1)), stackitem.NewArray([]stackitem.Item{stackitem.Null{}}))
require.Error(t, Notify(ic))
})
t.Run("recursive struct", func(t *testing.T) {