PushInt converts the provided scriptNum to a suitable byte array then pushes it onto the top of the stack. Stack transformation: [... x1 x2] -> [... x1 x2 int]
(val scriptNum)
| 57 | // |
| 58 | // Stack transformation: [... x1 x2] -> [... x1 x2 int] |
| 59 | func (s *stack) PushInt(val scriptNum) { |
| 60 | s.PushByteArray(val.Bytes()) |
| 61 | } |
| 62 | |
| 63 | // PushBool converts the provided boolean to a suitable byte array then pushes |
| 64 | // it onto the top of the stack. |