Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commander transaction:sign should expect empty mandatory or optional keys #5000

Closed
shuse2 opened this issue Mar 17, 2020 · 0 comments · Fixed by #5011
Closed

Commander transaction:sign should expect empty mandatory or optional keys #5000

shuse2 opened this issue Mar 17, 2020 · 0 comments · Fixed by #5011

Comments

@shuse2
Copy link
Collaborator

shuse2 commented Mar 17, 2020

Expected behavior

It should support empty mandatory key or optional key

Actual behavior

When there is no mandatory key or optional key, it fails with error findIndex cannot be called error

Steps to reproduce

./bin/run transaction:sign '{"id":"2082398145299954312","type":8,"senderPublicKey":"d9f0569230016a22206dd123900f245a71b479b5463c7ad235e4f4e933e181e2","senderId":"8363255854011484280L","nonce":"3","fee":"10000000","signatures":[],"asset":{"amount":"10000000","recipientId":"3077205662092022585L"}}' --optional-key="e072e3987e9aad9ed7e5735b89af817d16835dbc646d2463928912f42ca18176" --optional-key="c39ff325a5329cfe0f1b122302e9e7df9cb0d9d513770fddc79edaf9106abcff" --optional-key="2675782a6b2c90d9d555343d7a0ac6c6a558ba0484f0ca2f6db0c0dd10a72624" --networkIdentifier=11a254dc30db5eb1ce4001acde35fd5a14d62584f886d30df161e4e883220eb7 --passphrase="table grocery kiss hip retreat chief fringe trash egg valve remind cigar" --passphrase="rally deposit crop embark bronze mom mechanic power walnut melt mention april"

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

4.0-

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants