From 34ee6482dca78f861d6efdd3060ffd7ab6e7c4d8 Mon Sep 17 00:00:00 2001 From: Startail the 'Coon Date: Sat, 8 Jun 2024 11:14:11 +0200 Subject: [PATCH] Minor fixes --- src/Models/Chain/Transaction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/Chain/Transaction.php b/src/Models/Chain/Transaction.php index 89405a1..f182062 100644 --- a/src/Models/Chain/Transaction.php +++ b/src/Models/Chain/Transaction.php @@ -149,7 +149,7 @@ function getInputAddresses(array $inputs):array { throw new \Exception("Input transaction '{$vin->txid}' not found!"); } - $addresses[$inputs[$array_key]->vout[$vin->vout]->scriptPubKey->addresses[0]] = $inputs[$vin->txid]->vout[$vin->vout]->scriptPubKey->addresses[0]; + $addresses[$inputs[$array_key]->vout[$vin->vout]->scriptPubKey->addresses[0]] = $inputs[$array_key]->vout[$vin->vout]->scriptPubKey->addresses[0]; } return $addresses;