diff options
author | Robert Zaremba <robert.zaremba@scale-it.pl> | 2017-11-10 09:48:51 +0800 |
---|---|---|
committer | Martin Holst Swende <martin@swende.se> | 2017-12-21 22:14:50 +0800 |
commit | 95461e8b2289c1b8f6c588087a8de5f4f64a749c (patch) | |
tree | e1763fdc4d931bc1a9882538cc51283352dccc2b /accounts/abi/abi.go | |
parent | 0ed8b838a991f81f79cc6ed4fa961c563203a7a2 (diff) | |
download | dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.gz dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.bz2 dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.lz dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.xz dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.zst dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.zip |
accounts/abi: satisfy most of the linter warnings
+ adding missing comments
+ small cleanups which won't significantly change
function body.
+ unify Method receiver name
Diffstat (limited to 'accounts/abi/abi.go')
-rw-r--r-- | accounts/abi/abi.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accounts/abi/abi.go b/accounts/abi/abi.go index 02b4fa472..6170c7062 100644 --- a/accounts/abi/abi.go +++ b/accounts/abi/abi.go @@ -89,7 +89,7 @@ func (abi ABI) Unpack(v interface{}, name string, output []byte) (err error) { } else if event, ok := abi.Events[name]; ok { unpack = event } else { - return fmt.Errorf("abi: could not locate named method or event.") + return fmt.Errorf("abi: could not locate named method or event") } // requires a struct to unpack into for a tuple return... @@ -99,6 +99,7 @@ func (abi ABI) Unpack(v interface{}, name string, output []byte) (err error) { return unpack.singleUnpack(v, output) } +// UnmarshalJSON implements json.Unmarshaler interface func (abi *ABI) UnmarshalJSON(data []byte) error { var fields []struct { Type string |