label/remove panics in vm

This commit is contained in:
Ethan Buchman
2015-06-26 01:50:31 +00:00
parent 6a0223641f
commit 8f94997472
3 changed files with 5 additions and 1 deletions

View File

@ -47,6 +47,7 @@ func (st *Stack) Push(d Word256) {
st.ptr++
}
// currently only called after Sha3
func (st *Stack) PushBytes(bz []byte) {
if len(bz) != 32 {
panic("Invalid bytes size: expected 32")