()
| 149 | } |
| 150 | |
| 151 | func GetPassword() string { |
| 152 | // get password and unlock keystore file, then update `key` |
| 153 | prompt := "Input password to unlocking account" |
| 154 | password, err := commons.ReadPassword(prompt, false) |
| 155 | if err != nil { |
| 156 | log.Fatal("Failed to read password", "err", err) |
| 157 | } |
| 158 | |
| 159 | return password |
| 160 | } |
| 161 | |
| 162 | func PrepareAll(ctx *cli.Context, withTransactor bool) (addr common.Address, client *cpclient.Client, key *keystore.Key, err error) { |
| 163 |