From 7e0b8f1c264dce1fd166a4472e3961b0acc0d790 Mon Sep 17 00:00:00 2001 From: vro <168573323+golangisfun123@users.noreply.github.com> Date: Sun, 1 Sep 2024 10:53:01 -0500 Subject: [PATCH] small bug fix [goreleaser] (#3086) --- contrib/opbot/botmd/commands.go | 4 ++-- contrib/opbot/config/config.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/contrib/opbot/botmd/commands.go b/contrib/opbot/botmd/commands.go index abb0d19e6b..460e7f3835 100644 --- a/contrib/opbot/botmd/commands.go +++ b/contrib/opbot/botmd/commands.go @@ -304,7 +304,7 @@ func (b *Bot) rfqRefund() *slacker.CommandDefinition { return } - canRefund, err := b.screener.ScreenAddress(ctx.Context(), rawRequest.Sender) + isScreened, err := b.screener.ScreenAddress(ctx.Context(), rawRequest.Sender) if err != nil { _, err := ctx.Response().Reply("error screening address") if err != nil { @@ -312,7 +312,7 @@ func (b *Bot) rfqRefund() *slacker.CommandDefinition { } return } - if !canRefund { + if isScreened { _, err := ctx.Response().Reply("address cannot be refunded") if err != nil { log.Println(err) diff --git a/contrib/opbot/config/config.go b/contrib/opbot/config/config.go index cf880b6eb9..e9dde19453 100644 --- a/contrib/opbot/config/config.go +++ b/contrib/opbot/config/config.go @@ -3,9 +3,10 @@ package config import ( "errors" + "strings" + "github.com/synapsecns/sanguine/ethergo/signer/config" submitterConfig "github.com/synapsecns/sanguine/ethergo/submitter/config" - "strings" ) // Config represents the configuration of the application.