* Inject properties from a nulldata/opreturn script. * @private * @param {Buffer} flags
(flags)
| 1557 | */ |
| 1558 | |
| 1559 | fromNulldata(flags) { |
| 1560 | assert(Buffer.isBuffer(flags)); |
| 1561 | assert(flags.length <= policy.MAX_OP_RETURN, 'Nulldata too large.'); |
| 1562 | |
| 1563 | this.clear(); |
| 1564 | this.pushOp(opcodes.OP_RETURN); |
| 1565 | this.pushData(flags); |
| 1566 | |
| 1567 | return this.compile(); |
| 1568 | } |
| 1569 | |
| 1570 | /** |
| 1571 | * Create a nulldata/opreturn script. |
no test coverage detected