Skip to content

Commit a9a612c

Browse files
committed
mod: update logic check phishing address
1 parent ea8b1bb commit a9a612c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/middleware/plugins/safety.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99

1010
"github.com/valyala/fasthttp"
1111

12-
"aggregator/internal/aggregator"
1312
"aggregator/internal/client"
1413
"aggregator/internal/config"
1514
"aggregator/internal/log"
@@ -119,7 +118,8 @@ func (m *SafetyMiddleware) OnRequest(session *rpc.Session) error {
119118
}
120119
alert.AlertDiscord(ctx, fmt.Sprintf("Option denied - scam address %s %s", m.shortAddress(targetAddress), reporter))
121120
logger.Error("Option denied", "target", targetAddress, "Reason", pha.Description, "reporter", pha.Reporter)
122-
return aggregator.ErrDenyRequest
121+
// no return error, just log and alert
122+
//return aggregator.ErrDenyRequest
123123
}
124124
}
125125

0 commit comments

Comments
 (0)