Update main.go

This commit is contained in:
Doryu 2025-11-03 21:00:07 +01:00 committed by GitHub
parent 5b77af394e
commit dc880198e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -889,17 +889,14 @@ func confirm(text string) bool {
if err != nil { if err != nil {
log.Crit("Failed to read user input", "err", err) log.Crit("Failed to read user input", "err", err)
} }
if text := strings.TrimSpace(text); text == "ok" { return strings.TrimSpace(text) == "ok"
return true
}
return false
} }
func testExternalUI(api *core.SignerAPI) { func testExternalUI(api *core.SignerAPI) {
ctx := context.WithValue(context.Background(), "remote", "clef binary") ctx := context.WithValue(context.Background(), "remote", "clef binary")
ctx = context.WithValue(ctx, "scheme", "in-proc") ctx = context.WithValue(ctx, "scheme", "in-proc")
ctx = context.WithValue(ctx, "local", "main") ctx = context.WithValue(ctx, "local", "main")
errs := make([]string, 0) var errs []string
a := common.HexToAddress("0xdeadbeef000000000000000000000000deadbeef") a := common.HexToAddress("0xdeadbeef000000000000000000000000deadbeef")
addErr := func(errStr string) { addErr := func(errStr string) {