Bit-Wasp / bitcoin-lib-php

PHP libraries implementing bitcoin key functions, as well as BIP32 and electrum.
The Unlicense
136 stars 86 forks source link

fixed parsing a output that contains OP_RETURN #84

Closed rubensayshi closed 9 years ago

rubensayshi commented 9 years ago

ran into this problem with an OP_RETURN tx.

$byte is a string containing a hex, 0x01 is an int (defined as hex in the code), can't compare them as integers without hexdec($byte).

afk11 commented 9 years ago

Makes sense, cheers :)