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

Transactions to 'yourself' are all seen as "account initialization" - Closes #1281 #1397

Merged
merged 8 commits into from
Oct 31, 2018

Conversation

bmaggi-lisk
Copy link
Contributor

@bmaggi-lisk bmaggi-lisk commented Oct 26, 2018

What issue have I solved?

-- #1281

How have I implemented/fixed it?

  1. Type 0 transactions to yourself (same sender & receiver) show address instead of "Account initialization"
  2. When initializing account the reference message for the transaction is set to "Account initialization"

How has this been tested?

  1. Transfer some amount of LSK to yourself
  2. Go to wallet outgoing transactions check for the transaction you made to yourself you should see recipient (self) address instead of "Account initialization"

Review checklist

@bmaggi-lisk bmaggi-lisk changed the base branch from development to 1.6.0 October 26, 2018 09:19
@bmaggi-lisk bmaggi-lisk self-assigned this Oct 26, 2018
@@ -79,13 +79,15 @@ class SendReadable extends React.Component {
send(event) {
event.preventDefault();
this.setState({ loading: true });
const isAccountInit = this.props.accountInit &&
(this.props.account.address === this.state.recipient.value);
Copy link
Contributor

Choose a reason for hiding this comment

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

The second line of the condition is not needed, this.props.accountInit should be already all you need.

slaweet
slaweet previously approved these changes Oct 29, 2018
Copy link
Contributor

@slaweet slaweet left a comment

Choose a reason for hiding this comment

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

👍

@bmaggi-lisk bmaggi-lisk changed the title Transactions to 'yourself' are all seen as "account initialization - Closes #1281 Transactions to 'yourself' are all seen as "account initialization" - Closes #1281 Oct 30, 2018
@bmaggi-lisk bmaggi-lisk merged commit 8d91de8 into 1.6.0 Oct 31, 2018
@bmaggi-lisk bmaggi-lisk deleted the 1281-account-initialization branch October 31, 2018 14:08
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