Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhiran committed Nov 7, 2024
1 parent dd7f890 commit 6af9d06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6af9d06

Please sign in to comment.