We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9841199 + 33dfeea commit 1f62035Copy full SHA for 1f62035
1 file changed
src/Serializer/Transaction/OutPointSerializer.php
@@ -50,8 +50,8 @@ public function serialize(OutPointInterface $outpoint): BufferInterface
50
public function fromParser(Parser $parser): OutPointInterface
51
{
52
return new OutPoint(
53
- $this->txid->read($parser),
54
- (int) $this->vout->read($parser)
+ new Buffer(strrev($parser->readBytes(32)->getBinary()), 32),
+ unpack("V", $parser->readBytes(4)->getBinary())[1]
55
);
56
}
57
0 commit comments