Skip to content

Commit

Permalink
Add additional data field edge case related to #2370
Browse files Browse the repository at this point in the history
  • Loading branch information
diego-G committed Oct 12, 2018
1 parent 43fe223 commit 13966da
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/functional/http/post/0.transfer.js
Expand Up @@ -298,6 +298,26 @@ describe('POST /api/transactions (type 0) transfer funds', () => {
});
});
});

describe('edge cases', () => {
it("using '\u0000 hey:)' should be ok", () => {
var additioinalData = '\u0000 hey:)';
var accountAdditionalData = randomUtil.account();
transaction = lisk.transaction.transfer({
amount: 1,
passphrase: accountFixtures.genesis.passphrase,
recipientId: accountAdditionalData.address,
data: additioinalData,
});

return sendTransactionPromise(transaction).then(res => {
expect(res.body.data.message).to.be.equal(
'Transaction(s) accepted'
);
goodTransactions.push(transaction);
});
});
});
});
});

Expand Down

0 comments on commit 13966da

Please sign in to comment.