for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace BitWasp\Bitcoin\Transaction\Factory\Checker;
use BitWasp\Bitcoin\Script\Interpreter\CheckerBase;
use BitWasp\Bitcoin\Script\Interpreter\BitcoinCashChecker;
use BitWasp\Bitcoin\Script\Interpreter\Checker;
use BitWasp\Bitcoin\Transaction\TransactionInterface;
use BitWasp\Bitcoin\Transaction\TransactionOutputInterface;
class BitcoinCashCheckerCreator extends CheckerCreator
{
/**
* @param TransactionInterface $tx
* @param int $nInput
* @param TransactionOutputInterface $txOut
* @return Checker
*/
public function create(TransactionInterface $tx, int $nInput, TransactionOutputInterface $txOut): CheckerBase
return new BitcoinCashChecker($this->ecAdapter, $tx, $nInput, $txOut->getValue(), $this->txSigSerializer, $this->pubKeySerializer);
}