From 6af9d06199d2df2d71038e24eaaa54efedadcf0c Mon Sep 17 00:00:00 2001 From: huangzhiran Date: Thu, 7 Nov 2024 14:40:50 +0800 Subject: [PATCH] add log --- api/http.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/http.go b/api/http.go index 5d9e7fc..63d7152 100644 --- a/api/http.go +++ b/api/http.go @@ -218,7 +218,9 @@ func (s *httpServer) owner(sigStr string, o any) (common.Address, error) { rID := []uint8{0, 1, 2, 3, 4, 27, 28} for _, id := range rID { - if a, err := s.recover(append(sig, byte(id)), h); err == nil { + ns := append(sig, byte(id)) + slog.Info("current signature", "signature", hexutil.Encode(ns)) + if a, err := s.recover(ns, h); err == nil { slog.Info("recover owner success", "r_id", id) return a, nil } else {