mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-14 07:53:47 +00:00
remove field that I added to abi.Error and never used
This commit is contained in:
parent
02ff41a738
commit
bbddf0d0be
1 changed files with 5 additions and 8 deletions
|
|
@ -38,8 +38,6 @@ type Error struct {
|
||||||
// ID returns the canonical representation of the error's signature used by the
|
// ID returns the canonical representation of the error's signature used by the
|
||||||
// abi definition to identify event names and types.
|
// abi definition to identify event names and types.
|
||||||
ID common.Hash
|
ID common.Hash
|
||||||
|
|
||||||
Selector string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewError(name string, inputs Arguments) Error {
|
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)))
|
id := common.BytesToHash(crypto.Keccak256([]byte(sig)))
|
||||||
|
|
||||||
return Error{
|
return Error{
|
||||||
Name: name,
|
Name: name,
|
||||||
Inputs: inputs,
|
Inputs: inputs,
|
||||||
str: str,
|
str: str,
|
||||||
Sig: sig,
|
Sig: sig,
|
||||||
ID: id,
|
ID: id,
|
||||||
Selector: fmt.Sprintf("%x", id[0:4]),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue