LiskArchive / lisk-sdk

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

Lisk Commander transaction type errors #4801

Closed Lemii closed 4 years ago

Lemii commented 4 years ago

When I try to create a regular transfer transaction with Lisk Commander, it throws an error stating that the transaction type is incorrect. It seems there is an offset of 8:

lisk transaction:create --type=0 100 1L -p=pass:"word word word word word word word word word word word word"

 ›   Error: Expected --type=0 to be one of: 8, transfer, 9, second-passphrase, 10, delegate, 11, vote, 12, multisignature
 ›   See more help with --help

When I try to create the transaction with --type=transfer it generates a transaction with `"type: 8", in its body -- which gets rejected by the network as expected.

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

Lemii commented 4 years ago

This problem appears to be related to version 3.0.0 and up. I rolled back to 2.2.3 and that is working correctly.

shuse2 commented 4 years ago

@Lemii Currently latest commander only supports lisk-sdk@3.0~. If you want to use it for current testnet/mainnet, please use v2 version