mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-09 21:35:58 +00:00
891174eda3
This issue was caused by a string to integer conversion. In JavaScript, when converting a string that starts with `0` (which is the case for tx hashes) to an integer using `parseInt` it will always yield 0. That, combined with a block with number 0 would always return a block result instead of the transaction. ``` > parseInt("0xluri", 10) 0 ``` This PR checks if the resulting number equals the string that was provided on top of checking for the block number.