mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
Update main.go
This commit is contained in:
parent
5b77af394e
commit
dc880198e5
1 changed files with 2 additions and 5 deletions
|
|
@ -889,17 +889,14 @@ func confirm(text string) bool {
|
|||
if err != nil {
|
||||
log.Crit("Failed to read user input", "err", err)
|
||||
}
|
||||
if text := strings.TrimSpace(text); text == "ok" {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return strings.TrimSpace(text) == "ok"
|
||||
}
|
||||
|
||||
func testExternalUI(api *core.SignerAPI) {
|
||||
ctx := context.WithValue(context.Background(), "remote", "clef binary")
|
||||
ctx = context.WithValue(ctx, "scheme", "in-proc")
|
||||
ctx = context.WithValue(ctx, "local", "main")
|
||||
errs := make([]string, 0)
|
||||
var errs []string
|
||||
|
||||
a := common.HexToAddress("0xdeadbeef000000000000000000000000deadbeef")
|
||||
addErr := func(errStr string) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue