MCPcopy Create free account
hub / github.com/CPChain/chain / GetPassword

Function GetPassword

tools/contract-admin/utils/utils.go:151–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149}
150
151func 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
162func PrepareAll(ctx *cli.Context, withTransactor bool) (addr common.Address, client *cpclient.Client, key *keystore.Key, err error) {
163

Callers 1

PrepareAllFunction · 0.85

Calls 1

FatalMethod · 0.65

Tested by

no test coverage detected