AntelopeIO / DUNES

Docker Utilities for Node Execution
Other
26 stars 17 forks source link

Wallet unlock failed when password is given in password prompt. #48

Closed sukanta-manna closed 1 year ago

sukanta-manna commented 2 years ago

I wanted to unlock my_wallet. It did not work in case 1. But, did work in case 2. Probably, should be working in both the cases.

(Case 1)

dune -- cleos wallet unlock --name my_wallet password: PW5JT3TjkRSYa6CtVwTD8tQ87Z4oXwQGyeNiLW5DPfUozBNL15Q8m

(Case 2) dune -- cleos wallet unlock --name my_wallet --password PW5JT3TjkRSYa6CtVwTD8tQ87Z4oXwQGyeNiLW5DPfUozBNL15Q8m duneFR

jolly-fellow commented 1 year ago

@sukanta-manna Command of DUNE "-- " executes a command line following "-- " inside the container as is. "--password" is a command of cleos. So actually it means that in the container will be executed the following command: cleos wallet unlock --name my_wallet --password PW5JT3TjkRSYa6CtVwTD8tQ87Z4oXwQGyeNiLW5DPfUozBNL15Q8m By description of the command wallet unlock there is the only way to send the password to cleos - by using "--password" key. When you send password: PW5JT3TjkRSYa6CtVwTD8tQ87Z4oXwQGyeNiLW5DPfUozBNL15Q8m in the second line it is not considered as a part of the command line for execution inside the container. And it doesn't follow the format of the "--password" key.

https://docs.eosnetwork.com/leap/latest/cleos/command-reference/wallet/unlock

stephenpdeos commented 1 year ago

Closing due inactivity