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

Remove fromJSON and create function from custom transaction - Closes #1057 #1065

Closed pablitovicente closed 5 years ago

pablitovicente commented 5 years ago

What was the problem?

How did I fix it?

Remove fromJSON for each custom transactions because having 2 ways to instantiate the class is bit confusing for user.

Remove create for each custom transactions to obtain the signed transaction. Instead, each create transaction function (0_transfer, etc) should use the custom class created instead.

How to test it?

Review checklist