mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 11:41:48 +00:00
vm: do not pop items in OVER
This commit is contained in:
parent
7cd69ea8e2
commit
4a8be486f0
2 changed files with 3 additions and 6 deletions
|
@ -920,6 +920,8 @@ func TestOVERbadNoitem(t *testing.T) {
|
|||
vm.estack.PushVal(1)
|
||||
vm.Run()
|
||||
assert.Equal(t, true, vm.state.HasFlag(faultState))
|
||||
assert.Equal(t, 1, vm.estack.Len())
|
||||
assert.Equal(t, makeStackItem(1), vm.estack.Pop().value)
|
||||
}
|
||||
|
||||
func TestOVERbadNoitems(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue