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
2 changes: 1 addition & 1 deletion src/components/sendReadable/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class SendReadable extends React.Component {
amount: this.state.amount.value,
passphrase: this.props.passphrase.value,
secondPassphrase: this.props.secondPassphrase.value,
data: this.props.reference,
data: this.props.accountInit ? this.props.t('Account initialization') : this.props.reference,
});
}

Expand Down
3 changes: 0 additions & 3 deletions src/components/transactions/transactionType.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ const TransactionType = (props) => {
const { t } = props;
let type;
switch (props.type) {
case 0:
type = props.senderId === props.recipientId ? t('Account initialization') : false;
break;
case 1:
type = t('Second passphrase registration');
break;
Expand Down
2 changes: 1 addition & 1 deletion test/cypress/e2e/transfer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ describe('Transfer', () => {
cy.get(ss.amountInput).click().type(randomAmount);
cy.get(ss.nextButton).click();
cy.get(ss.sendButton).click();
cy.get(ss.transactionRow).eq(0).find(ss.transactionAddress).should('have.text', msg.accountInitializatoinAddress);
cy.get(ss.transactionRow).eq(0).find(ss.transactionAddress).should('have.text', accounts.genesis.address);
});

it('Launch protocol link prefills recipient, amount and reference', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/wallet.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ describe('@integration: Wallet', () => {
match.defined,
match.defined,
null,
undefined,
'Account initialization',
).returnsPromise().resolves({ data: [] });
});

Expand Down