* Instantiate an opcode from a number opcode. * @param {Number} op * @returns {Opcode}
(op)
| 414 | */ |
| 415 | |
| 416 | static fromOp(op) { |
| 417 | assert(typeof op === 'number'); |
| 418 | |
| 419 | const cached = opCache[op]; |
| 420 | |
| 421 | assert(cached, 'Bad opcode.'); |
| 422 | |
| 423 | return cached; |
| 424 | } |
| 425 | |
| 426 | /** |
| 427 | * Instantiate a pushdata opcode from |
no outgoing calls
no test coverage detected