LiskArchive / lisk-sdk

🔩 Lisk software development kit
https://lisk.com
Apache License 2.0
2.72k stars 457 forks source link

transaction:create crashes when fetching parameters from prompt #9105

Closed has5aan closed 8 months ago

has5aan commented 8 months ago

Expected behavior

CreateCommand when fetching properties of type array of objects as CSV crashes if user opts to add no more items.

Plus, if the user confirms to add a new item in the nested array of objects; the prompt starts from the first property of the object containing the concerned property.

Actual behavior

CreateCommand; when fetching properties of nested arrays having items of type object, should inquire to fetch more items and should use the schema of the nested object.

Steps to reproduce

Execute mintNft command on testNft module under examples/pos-mainchain.

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

release/6.1.0