Skip to content

Commit

Permalink
change publick recover logic
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhiran committed Nov 7, 2024
1 parent dd9a78d commit 1ebc965
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (s *httpServer) owner(sigStr string, o any) (common.Address, error) {
h := crypto.Keccak256Hash(reqJson)

if a, err := s.recoverOwner(sigStr+"27", h); err == nil {
slog.Debug("recover owner with 27 success")
slog.Info("recover owner with 27 success")
return a, nil
}
return s.recoverOwner(sigStr+"28", h)
Expand Down
2 changes: 1 addition & 1 deletion cmd/server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type Config struct {

var (
defaultTestnetConfig = &Config{
LogLevel: slog.LevelDebug,
LogLevel: slog.LevelInfo,
ServiceEndpoint: ":9000",
DatabaseDSN: "postgres://postgres:mysecretpassword@postgres:5432/w3bstream?sslmode=disable",
ChainEndpoint: "https://babel-api.testnet.iotex.io",
Expand Down

0 comments on commit 1ebc965

Please sign in to comment.