PushBool converts the provided boolean to a suitable byte array then pushes it onto the top of the stack. Stack transformation: [... x1 x2] -> [... x1 x2 bool]
(val bool)
| 65 | // |
| 66 | // Stack transformation: [... x1 x2] -> [... x1 x2 bool] |
| 67 | func (s *stack) PushBool(val bool) { |
| 68 | s.PushByteArray(fromBool(val)) |
| 69 | } |
| 70 | |
| 71 | // PopByteArray pops the value off the top of the stack and returns it. |
| 72 | // |