Skip to content
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

Send features, show single Transactions migration to 1.0.0 - Closes #967 #970

Conversation

michaeltomasik
Copy link
Contributor

What was the problem?

old implementation

How did I fix it?

Migrated to 1.0.0

Review checklist

offset,
orderBy,
export const unconfirmedTransactions = (activePeer, address, limit = 20, offset = 0, sort = 'timestamp:desc') =>
new Promise(() => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't wrap a promise as the getTransactions is already returning a Promise.

const added = (response.transaction.votes && response.transaction.votes.added) || [];
const deleted = (response.transaction.votes && response.transaction.votes.deleted) || [];
const transaction = response.data[0];
const added = (transaction.votes && transaction.votes.added) || [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the api changed, and now the object to be used is transaction.asset.votes, and requires to filter added & removed.
see
https://github.com/LiskHQ/lisk-hub/blob/99ae7afc92a7b796ef4b9f6299ba18a027277966/src/actions/transactions.js#L111

@michaeltomasik michaeltomasik merged commit f1a0b0f into 937-migrate-login-to-work-with-core-1.0.0 Jun 29, 2018
@slaweet slaweet deleted the 967-send-features-transactions branch July 3, 2018 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants