Implements OP_DROP and OP_2DROP as well as tests for underflow cases. I couldn't find better ways than to just panic and catch the panic in test with #[should_panic] macro. I saw that there's another stack underflow check in the pop_byte_array() too but I think it's better to do it within the opcode body itself before any byte arrays are popped, especailly for 2DROP.
Implements
OP_DROP
andOP_2DROP
as well as tests for underflow cases. I couldn't find better ways than to just panic and catch the panic in test with#[should_panic]
macro. I saw that there's another stack underflow check in the pop_byte_array() too but I think it's better to do it within the opcode body itself before any byte arrays are popped, especailly for 2DROP.