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

Non required properties for transactions should be allowed to be null/undefined #1203

Closed SargeKhan closed 5 years ago

SargeKhan commented 5 years ago

Expected behavior

The current protocol allows non-required properties to have null/undefined value for all non-required properties whereas lisk-transactions throws an error in case, say if a property value is null it was expected to be string.

Actual behavior

The validate step for transaction throws an error if a property is null or undefined.

Which version(s) does this affect? (Environment, OS, etc...)

release/2.1.0