From cfd970c63656d6352068280a9fd3aac0762bf139 Mon Sep 17 00:00:00 2001 From: John Hilliard Date: Fri, 20 Dec 2024 14:54:17 -0500 Subject: [PATCH] feat: surpressing error logs --- cmd/ulxly/ulxly.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/ulxly/ulxly.go b/cmd/ulxly/ulxly.go index 4cf98003..eabdeeba 100644 --- a/cmd/ulxly/ulxly.go +++ b/cmd/ulxly/ulxly.go @@ -246,6 +246,11 @@ func logAndReturnJsonError(cmd *cobra.Command, client *ethclient.Client, tx *typ errLog = errLog.Err(callErr) } + if errCode, isValid := jsonError.Data.(string); isValid && errCode == "0x646cf558" { + // I don't want to bother with the additional error logging for previously claimed deposits + return err + } + errLog.Msg("Unable to interact with bridge contract") return err