aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/unpack.go
diff options
context:
space:
mode:
authorRobert Zaremba <robert.zaremba@scale-it.pl>2017-11-10 09:48:51 +0800
committerMartin Holst Swende <martin@swende.se>2017-12-21 22:14:50 +0800
commit95461e8b2289c1b8f6c588087a8de5f4f64a749c (patch)
treee1763fdc4d931bc1a9882538cc51283352dccc2b /accounts/abi/unpack.go
parent0ed8b838a991f81f79cc6ed4fa961c563203a7a2 (diff)
downloadgo-tangerine-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar
go-tangerine-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.gz
go-tangerine-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.bz2
go-tangerine-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.lz
go-tangerine-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.xz
go-tangerine-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.zst
go-tangerine-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/unpack.go')
-rw-r--r--accounts/abi/unpack.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/accounts/abi/unpack.go b/accounts/abi/unpack.go
index 5adb91ff7..372a86c86 100644
--- a/accounts/abi/unpack.go
+++ b/accounts/abi/unpack.go
@@ -79,7 +79,7 @@ func readBool(word []byte) (bool, error) {
// This enforces that standard by always presenting it as a 24-array (address + sig = 24 bytes)
func readFunctionType(t Type, word []byte) (funcTy [24]byte, err error) {
if t.T != FunctionTy {
- return [24]byte{}, fmt.Errorf("abi: invalid type in call to make function type byte array.")
+ return [24]byte{}, fmt.Errorf("abi: invalid type in call to make function type byte array")
}
if garbage := binary.BigEndian.Uint64(word[24:32]); garbage != 0 {
err = fmt.Errorf("abi: got improperly encoded function type, got %v", word)
@@ -92,7 +92,7 @@ func readFunctionType(t Type, word []byte) (funcTy [24]byte, err error) {
// through reflection, creates a fixed array to be read from
func readFixedBytes(t Type, word []byte) (interface{}, error) {
if t.T != FixedBytesTy {
- return nil, fmt.Errorf("abi: invalid type in call to make fixed byte array.")
+ return nil, fmt.Errorf("abi: invalid type in call to make fixed byte array")
}
// convert
array := reflect.New(t.Type).Elem()