LiskArchive / lisk-elements

⚙️ Library for sending Lisk transactions from the client or server
https://lisk.io/
GNU General Public License v3.0
250 stars 64 forks source link

Change recipientId to accept null - Closes #1158 #1161

Closed shuse2 closed 5 years ago

shuse2 commented 5 years ago

What was the problem?

Constructor did not accept recipientId as null, but genesis block contains vote transaction with null recipientId

How did I fix it?

accept null as input of recipientId, and converted to empty string internally. It will be validated at validate function.

How to test it?

Create VoteTransaction with null recipientId

Review checklist