Skip to content

Commit

Permalink
remove field that I added to abi.Error and never used
Browse files Browse the repository at this point in the history
  • Loading branch information
jwasinger committed Dec 16, 2024
1 parent 2c76a71 commit 78202cd
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions accounts/abi/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
}
}

Expand Down

0 comments on commit 78202cd

Please sign in to comment.