Merge pull request #95 from tendermint/vm_panics

label/remove panics in vm
This commit is contained in:
Jae Kwon
2015-06-27 10:10:25 -07:00
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")