From bbddf0d0be52321d5d53260e90a3561885a74ad0 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Mon, 16 Dec 2024 15:50:26 +0700 Subject: [PATCH] remove field that I added to abi.Error and never used --- accounts/abi/error.go | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/accounts/abi/error.go b/accounts/abi/error.go index 203aab0403..8e50112ec5 100644 --- a/accounts/abi/error.go +++ b/accounts/abi/error.go @@ -38,8 +38,6 @@ type Error struct { // ID returns the canonical representation of the error's signature used by the // abi definition to identify event names and types. ID common.Hash - - Selector string } func NewError(name string, inputs Arguments) Error { @@ -71,12 +69,11 @@ func NewError(name string, inputs Arguments) Error { id := common.BytesToHash(crypto.Keccak256([]byte(sig))) return Error{ - Name: name, - Inputs: inputs, - str: str, - Sig: sig, - ID: id, - Selector: fmt.Sprintf("%x", id[0:4]), + Name: name, + Inputs: inputs, + str: str, + Sig: sig, + ID: id, } }