Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | 12 | public function __construct(ScriptInterface $script, Opcodes $opcodes = null) |
|
31 | { |
||
32 | 12 | parent::__construct($script->getBuffer(), $opcodes); |
|
33 | 12 | $this->scriptHash = $script->getScriptHash(); |
|
34 | 12 | $this->outputScript = ScriptFactory::scriptPubKey()->p2sh($this->scriptHash); |
|
35 | 12 | $this->address = new ScriptHashAddress($this->scriptHash); |
|
36 | 12 | } |
|
37 | |||
62 |