Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
startailcoon committed Jun 8, 2024
1 parent 34ee648 commit 80a0ea6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Models/Chain/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ function getType() {

if(isset($this->vout[0]->scriptPubKey->asm)) {

if($this->vout[0]->scriptPubKey->asm == "OP_RETURN") {
$asm_objects = explode(" ", $this->vout[0]->scriptPubKey->asm);

if(in_array("OP_RETURN", $asm_objects)) {
return TransactionType::BURN;
}

if(stristr($this->vout[0]->scriptPubKey->asm, "OP_HASH160")
&& stristr($this->vout[0]->scriptPubKey->asm, "OP_EQUAL"))
{
if(in_array("OP_HASH160", $asm_objects) && in_array("OP_EQUAL", $asm_objects)) {
return TransactionType::PAY2SCRIPT;
}

Expand Down

0 comments on commit 80a0ea6

Please sign in to comment.