We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using bitclout/transaction.ts to parse raw transaction data into metadata using Transaction.fromBytes(txBytes)[0];
I'm converting transaction.ts into .js using command:
tsc bitclout/transaction.ts
It is mostly going very well. However, when parsing CREATOR_COIN transactions, I'm sometimes getting negative numbers.
For example for this transaction
https://explorer.cloutangel.com/tx/3JuEUYJmCwdXq9XtqAUZ9YLaEdz4HVbCmZEUKeMtJvN9jUd1tjz5Bg
The following values are produced -
bitcloutToAddNanos:0 bitcloutToSellNanos:-359050958 operationType:0 minCreatorCoinExpectedNanos:11479892781 minBitcloutExpectedNanos:0 creatorCoinToSellNanos:0
I'm guessing it's some problem with large numbers wrapping around - Maybe related to this - https://github.com/bitclout/identity/pull/6/files ?
Any thoughts?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using bitclout/transaction.ts to parse raw transaction data into metadata using Transaction.fromBytes(txBytes)[0];
I'm converting transaction.ts into .js using command:
tsc bitclout/transaction.ts
It is mostly going very well. However, when parsing CREATOR_COIN transactions, I'm sometimes getting negative numbers.
For example for this transaction
https://explorer.cloutangel.com/tx/3JuEUYJmCwdXq9XtqAUZ9YLaEdz4HVbCmZEUKeMtJvN9jUd1tjz5Bg
The following values are produced -
bitcloutToAddNanos:0
bitcloutToSellNanos:-359050958
operationType:0
minCreatorCoinExpectedNanos:11479892781
minBitcloutExpectedNanos:0
creatorCoinToSellNanos:0
I'm guessing it's some problem with large numbers wrapping around -
Maybe related to this - https://github.com/bitclout/identity/pull/6/files ?
Any thoughts?
The text was updated successfully, but these errors were encountered: