MCPcopy Index your code
hub / github.com/bcoin-org/bcoin / set

Method set

lib/script/script.js:2603–2613  ·  view source on GitHub ↗
(index, op)

Source from the content-addressed store, hash-verified

2601 }
2602
2603 set(index, op) {
2604 if (index < 0)
2605 index += this.code.length;
2606
2607 assert(Opcode.isOpcode(op));
2608 assert(index >= 0 && index <= this.code.length);
2609
2610 this.code[index] = op;
2611
2612 return this;
2613 }
2614
2615 push(op) {
2616 assert(Opcode.isOpcode(op));

Callers 9

setOpMethod · 0.95
setDataMethod · 0.95
setPushMethod · 0.95
setStringMethod · 0.95
setSmallMethod · 0.95
setNumMethod · 0.95
setIntMethod · 0.95
setBoolMethod · 0.95
setSymMethod · 0.95

Calls 1

isOpcodeMethod · 0.80

Tested by

no test coverage detected