From 3b057f321bf051c150319406a76a3bbf03127572 Mon Sep 17 00:00:00 2001 From: axie <152680487+mfer6666@users.noreply.github.com> Date: Thu, 7 Dec 2023 10:52:26 +0800 Subject: [PATCH] fix(bindings): fix `AssignmentHookABI` variable typo (#468) Co-authored-by: David --- bindings/encoding/custom_error.go | 2 +- bindings/encoding/input.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/encoding/custom_error.go b/bindings/encoding/custom_error.go index c18b7f58e..95d89e09b 100644 --- a/bindings/encoding/custom_error.go +++ b/bindings/encoding/custom_error.go @@ -28,7 +28,7 @@ func TryParsingCustomError(originalError error) error { } } - for _, hookCustomError := range AssignemntHookABI.Errors { + for _, hookCustomError := range AssignmentHookABI.Errors { if strings.HasPrefix(hookCustomError.ID.Hex(), errData) { return errors.New(hookCustomError.Name) } diff --git a/bindings/encoding/input.go b/bindings/encoding/input.go index 13e8e23b7..83ee085f7 100644 --- a/bindings/encoding/input.go +++ b/bindings/encoding/input.go @@ -248,7 +248,7 @@ var ( var ( TaikoL1ABI *abi.ABI TaikoL2ABI *abi.ABI - AssignemntHookABI *abi.ABI + AssignmentHookABI *abi.ABI ) func init() { @@ -262,7 +262,7 @@ func init() { log.Crit("Get TaikoL2 ABI error", "error", err) } - if AssignemntHookABI, err = bindings.AssignmentHookMetaData.GetAbi(); err != nil { + if AssignmentHookABI, err = bindings.AssignmentHookMetaData.GetAbi(); err != nil { log.Crit("Get AssignmentHook ABI error", "error", err) } }