From 9e04b12c109b6d3b949ca6f549b0bdf918781537 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 24 Apr 2024 15:26:02 +0800 Subject: [PATCH] feat: remove unused code --- bindings/encoding/custom_error.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bindings/encoding/custom_error.go b/bindings/encoding/custom_error.go index 43c89af44..04c029795 100644 --- a/bindings/encoding/custom_error.go +++ b/bindings/encoding/custom_error.go @@ -71,12 +71,6 @@ func TryParsingCustomError(originalError error) error { } } - for _, hookCustomError := range AssignmentHookABI.Errors { - if strings.HasPrefix(hookCustomError.ID.Hex(), errData) { - return errors.New(hookCustomError.Name) - } - } - return originalError }