We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fcb981 commit 542403dCopy full SHA for 542403d
src/Transaction/PSBT/PSBTOutput.php
@@ -55,12 +55,18 @@ public function __construct(
55
ScriptInterface $redeemScript = null,
56
ScriptInterface $witnessScript = null,
57
array $bip32Derivations = [],
58
- array $unknown = []
+ array $unknowns = []
59
) {
60
+ foreach ($unknowns as $key => $unknown) {
61
+ if (!is_string($key) || !($unknown instanceof BufferInterface)) {
62
+ throw new \RuntimeException("Unknowns must be a map of string keys to Buffer values");
63
+ }
64
65
+
66
$this->redeemScript = $redeemScript;
67
$this->witnessScript = $witnessScript;
68
$this->bip32Derivations = $bip32Derivations;
- $this->unknown = $unknown;
69
+ $this->unknown = $unknowns;
70
}
71
72
/**
0 commit comments