-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
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
Fix filecoin spend saving #618
Conversation
|
||
const edgeTransaction: EdgeTransaction = { | ||
txid: '', | ||
date: 0, | ||
currencyCode, | ||
blockHeight: 0, | ||
nativeAmount: `-${totalTxAmount}`, | ||
isSend: nativeAmount.startsWith('-'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should just be true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do other engines detect sends based on the sign of the number?
src/zcash/ZcashEngine.ts
Outdated
nativeAmount: `-${totalTxAmount}`, // nativeAmount | ||
isSend: nativeAmount.startsWith('-'), | ||
nativeAmount: txNativeAmount, // nativeAmount | ||
isSend: txNativeAmount.startsWith('-'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should just be true
57af2d3
to
4a02b12
Compare
The date field was missing from the signed transactions so it wasn't being saved (I suppose that's a requirement by the CurrencyEngine implementation). Also,
isSend
had a bug that was copied fromZcashEngine
; now it's fixed in both places.CHANGELOG
saveTx
)Dependencies
noneDescription
none